encode XML as bytes in render_footnotes()

`part._blob` should have the class `bytes`.
This commit is contained in:
Jonathan Pyle 2024-11-29 15:23:46 -05:00 committed by GitHub
parent 60caff83fa
commit eed645c0c5
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):