Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escaping delimiters cannot render properly #548

Open
trouver opened this issue Jun 19, 2024 · 0 comments
Open

Escaping delimiters cannot render properly #548

trouver opened this issue Jun 19, 2024 · 0 comments
Labels

Comments

@trouver
Copy link

trouver commented Jun 19, 2024

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

@trouver trouver added the bug label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant