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

Complex vertical merging #462

Closed tsy19900929 closed 1 year ago

tsy19900929 commented 1 year ago

Enable complex vertical merging test1

elapouya commented 1 year ago

Hello,

Thank you for sharing your code. Nevertheless, I would like another implementation : instead of

{% cellbg var.vm() %}

I would prefer something like

{{tc richcol_obj}} like it is for {{r richtext_obj }}

I have to think about that...

tsy19900929 commented 1 year ago

Yes, Thank you for your attention.

{% cellbg %} is changing in the , In fact.

{{r var.vm() }} is changing in the , but also works in vertical_merging:smile:,except bg fill.

see https://github.com/tsy19900929/docxtpl_dynamic_vertical_merging/tree/main/test__2

elapouya commented 1 year ago

Set request for enhencement flag