Merge pull request #575 from jhpyle/patch-1

encode XML as bytes in render_footnotes()
This commit is contained in:
Eric Lapouyade 2024-12-29 18:43:33 +01:00 committed by GitHub
commit def1205179
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -370,7 +370,7 @@ class DocxTemplate(object):
else part.blob
)
xml = self.render_xml_part(xml, part, context, jinja_env)
part._blob = xml
part._blob = xml.encode("utf-8")
def resolve_listing(self, xml):