thombergs / docx-stamper

Easy-to-use template engine for creating docx documents in Java.
MIT License
213 stars 90 forks source link

Issue when deleting cells with footnotes #100

Open bflorat opened 2 years ago

bflorat commented 2 years ago

Docx-stamper 1.4.0:

If a table contains several rows, each containing a page footnote and some of these rows are deleted using a displayTableRowIf(...), all the page footnotes of deleted cells are aggregated and missed up (I suppose that footnotes are not deleted along with associated cell paragraph).

dallanmc commented 2 years ago

I wonder if footnotes are supported for any conditional logic at all. Does displayParagraphIf delete the footnote?

bflorat commented 2 years ago

I have not the issue with paragraphs : footnotes are correctly dropped.

Indeed, I didn't find any reference to footnotes in this project code.

dallanmc commented 2 years ago

Are you able to look at the code (and the docx xml source) to see what's going on? I could have a look in my spare time if you upload an simple example of the problem.