elapouya / python-docx-template

Use a docx as a jinja2 template
GNU Lesser General Public License v2.1
1.91k stars 378 forks source link

Blank row in rendered table #499

Open salfe opened 1 year ago

salfe commented 1 year ago

Describe your problem

A blank row generate in my table

More details about your problem

Here is my template, Capture

Here is the rendered table 图片

i am really not sure how to remove the blank row, anyone could give some suggestions?

Thank you very much

elapouya commented 1 year ago

Use {%tr for the if and endif do not use {%-

salfe commented 1 year ago

Great thanks. it works