Skip to content

Replacement string with tab characters ... #40

@elsen-of-iscc

Description

@elsen-of-iscc

Hi,

I ran in an issue when trying to add tabs [\t] to the replace value in the docx.PlaceholderMap:

replaceMap := docx.PlaceholderMap{
    "text":  "aaa\tbbb\tccc",
}

The replacement is done, but the tabs [\t] are converted to blanks in the target docx.

Is there anything I missed in the documentation or can do in a different way to get the tabs into the target docx?

Best, Harald

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions