guigrpa / docx-templates

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

Adding an image in a IF condition fails if there is no space before the image #379

Open matcobat opened 1 month ago

matcobat commented 1 month ago

Hello,

We encounter a problem with the last version. In a table cell, if you have a IF condition, and just an image in that condition, the cell will never be generated by the engine, even if the condition is true. If we add juste a space before the image, it works.

Here is a screenshot of my template (attached below) image

And here is the result : image

Here is the docx template : test docx-templates.docx