guigrpa / docx-templates

Template-based docx report creation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New Lines on nested FOR loop inside table cell

lunartec opened this issue · comments

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)