SAP Knowledge Base Article - Public

3069585 - Document Generation - Unwanted Spaces Before and After Placeholders

Symptom

Unwanted spaces are appearing around values returned by placeholders when document is generated. These spaces are not visible in the template configuration.

Environment

Employee Central - Document Generation

Reproducing the Issue

1. Check Template configuration and note no spaces before of after placeholder
2. Generate same template
3. Find spaces before and/or after the value mapped by placeholder

Cause

The placeholder has been stylized - i.e. the placeholder has been wrapped in tags such as bold.

E.g. [b][[Placeholder]][/b]

Resolution

Stylizing placeholders will result in unwanted spaces before and/or after when the value is mapped during document generation

Keywords

Document, Generation, Template, Space, Spaces, Placeholder, Tag, Tags, Bold, Underline, Italics, Code, Content, Editor, PDF, Word, RTE, Rich, Text, Editor , KBA , LOD-SF-EC-DOC , Document Generation , LOD-SF-EC , Employee Central , Problem

Product

SAP SuccessFactors Employee Central all versions