python-docx-template
python-docx-template copied to clipboard
Escaping delimiters cannot render properly
Escaping delimiters cannot be rendered correctly in the docx template under certain circumstances.
Test case
from docxtpl import DocxTemplate
def docxtpl_test():
tpl = DocxTemplate('escaping_delimiters_test_tpl.docx')
content = {}
tpl.render(content)
tpl.save('escaping_delimiters_test_res.docx')
if __name__ == '__main__':
docxtpl_test()
docx template
escaping_delimiters_test_tpl.docx
Local test results
Local test environment
OS: Windows 10 python version: python 3.10.9 docxtpl version: 0.17.0