python-docx-template/tests/vertical_merge_nested.py
Nick Gashkov 5ae0dbbf29 Fix broken tables caused by vertical merge inside complex nested tables
Updated regex pattern to make '{% vm %}' replace a two-step process:
  - Search for <w:tc>...{% vm %}...</w:tc>;
  - Parse table cell and put jinja tags inside correct places.
2018-08-31 18:57:54 +03:00

6 lines
144 B
Python

from docxtpl import DocxTemplate
tpl = DocxTemplate('test_files/vertical_merge_nested.docx')
tpl.render()
tpl.save('test_files/word2016.docx')