Escaping delimiters cannot be rendered correctly in the docx template under certain circumstances. **Test case** ``` python 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](https://github.com/user-attachments/files/15894799/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
Activity
cvas22 commentedon Nov 22, 2026
@trouver @CAOShurong fyi, this is fixed in Docform (the maintained fork at https://github.com/cvas22/docform,
docformon PyPI) via cvas22/docform#170 and cvas22/docform#174, based on #662. Escaped delimiters split across runs render correctly there, including the template from this issue. It'll be in the next release.