This commit is contained in:
Eric Lapouyade 2022-01-12 15:25:07 +01:00
parent 19733a6b5b
commit 23038b98de
3 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
0.15.2 (2022-01-12)
-------------------
- fix #408
0.15.1 (2021-12-20) 0.15.1 (2021-12-20)
------------------- -------------------
- Multi-rendering with same DocxTemplate object is now possible - Multi-rendering with same DocxTemplate object is now possible

View File

@ -4,7 +4,7 @@ Created : 2015-03-12
@author: Eric Lapouyade @author: Eric Lapouyade
""" """
__version__ = '0.15.1' __version__ = '0.15.2'
# flake8: noqa # flake8: noqa
from .inline_image import InlineImage from .inline_image import InlineImage

View File

@ -715,6 +715,7 @@ class DocxTemplate(object):
self.is_saved = True self.is_saved = True
def get_undeclared_template_variables(self, jinja_env=None): def get_undeclared_template_variables(self, jinja_env=None):
self.init_docx()
xml = self.get_xml() xml = self.get_xml()
xml = self.patch_xml(xml) xml = self.patch_xml(xml)
for uri in [self.HEADER_URI, self.FOOTER_URI]: for uri in [self.HEADER_URI, self.FOOTER_URI]: