Skip to content

Commit

Permalink
Merge pull request #575 from jhpyle/patch-1
Browse files Browse the repository at this point in the history
encode XML as bytes in render_footnotes()
elapouya authored Dec 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 60caff8 + eed645c commit def1205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docxtpl/template.py
Original file line number Diff line number Diff line change
@@ -370,7 +370,7 @@ def render_footnotes(
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):

0 comments on commit def1205

Please sign in to comment.