Copied from python-docx-template issue 548, opened by `@trouver` on 2024-06-19. --- 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 fixed by #170 and #174, escaped delimiters split across runs render correctly now, including the template from this issue.