Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Line Break Characters aren't working correctly #17

@tylerwal

Description

@tylerwal

Perhaps I'm doing something incorrectly, but looking at DocxTemplater.java and this line:

sv = sv.replace("\n", "<w:br/>");

It appears that new line characters (\r\n or \n) should result in <w:br/> elements being replaced within the XML. What I'm seeing instead is the <w:br/> text within the document post processing.

Expected:

Tyler Carver
Steven White
Amanda Bryant
Brenda Wout

Actual:

Tyler Carver<w:br/>Steven White<w:br/>Amanda Bryant<w:br/>Brenda Wout

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions