encode XML as bytes in render_footnotes()
`part._blob` should have the class `bytes`.
This commit is contained in:
parent
60caff83fa
commit
eed645c0c5
@ -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):
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user