guigrpa / docx-templates

Template-based docx report creation
MIT License
904 stars 146 forks source link

Nested table not rendering #277

Closed drinac closed 2 years ago

drinac commented 2 years ago

When nesting a table with FOR loop inside a table row that is also rendered with a FOR loop, the whole nested table is not rendered. When the nested loop is not repeating nested table rows, the values are rendered, as in the second table inside example.

Example : nested_table.docx template_example

Result: table_not_rendered Expected result: table_expected

-Environment: Nodejs v15.11.0 docx-temlates@4.9.2

jjhbw commented 2 years ago

I'm afraid this is a duplicate of https://github.com/guigrpa/docx-templates/issues/82. Sorry for the disappointing answer. Note my final comment in that issue for potential workarounds.