Skip to content

Adding a tab character #48

@SteveNetbeans

Description

@SteveNetbeans

I have found templ4docx really useful but have hit an issue around adding a tab character.

I have a string made up of various variables. I create a bulletlistVariable using the string

var1 + "\t" + var2 + "\t" + var3

However when it replaces the docx template variable, the "\t" is interpreted as a space and not as a tab. If I add two tabs i.e. "\t\t" then I get two spaces. Is there another character I'm supposed to use for templ4docx to recognize it. I have tried using the docx template with and without tab stops and the result is the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions