Skip to content

Escaping delimiters cannot render properly #115

Closed

Description

@cvas22

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

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

tpl_and_res

Local test environment

OS: Windows 10
python version: python 3.10.9
docxtpl version: 0.17.0

Activity

  1. added
    bug
    on Nov 9, 2026
  2. cvas22 commented on Nov 22, 2026

    @cvas22
    OwnerAuthor

    @trouver @CAOShurong fixed by #170 and #174, escaped delimiters split across runs render correctly now, including the template from this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions