guigrpa / docx-templates

Template-based docx report creation
MIT License
882 stars 145 forks source link

New Lines on nested FOR loop inside table cell #370

Open lunartec opened 4 months ago

lunartec commented 4 months ago

Detail: When using a FOR loop inside a looped table row, there are new lines generated above the content, the number of newlines seems to marry up to the number of lines of template that was used in the cell:

Template:

Screenshot 2024-05-07 at 17 27 06

Output:

Screenshot 2024-05-07 at 17 26 01

Expectation: I would not except there to be any newlines generated outside of what is defined in the template.

Using: CLI (NodeJS v20.12.2)