We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d616ad commit 0ef74a7Copy full SHA for 0ef74a7
docxtpl/template.py
@@ -360,7 +360,7 @@ def render_footnotes(
360
for section in self.docx.sections:
361
for part in section.part.package.parts:
362
if part.content_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml':
363
- xml = self.patch_xml(part.blob.decode('utf-8') if type(part.blob) is bytes else part.blob)
+ xml = self.patch_xml(part.blob.decode('utf-8') if isinstance(part.blob, bytes) else part.blob)
364
xml = self.render_xml_part(xml, part, context, jinja_env)
365
part._blob = xml
366
0 commit comments