Skip to content

Commit

Permalink
encode XML as bytes in render_footnotes()
Browse files Browse the repository at this point in the history
`part._blob` should have the class `bytes`.
  • Loading branch information
jhpyle authored Nov 29, 2024
1 parent 60caff8 commit eed645c
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
Expand Up @@ -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):

Expand Down

0 comments on commit eed645c

Please sign in to comment.