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 0061b55 commit 2886a85Copy full SHA for 2886a85
docxtpl/template.py
@@ -359,7 +359,7 @@ def render_footnotes(
359
360
for k, v in self.docx.sections[0].part.related_parts.items():
361
if v.content_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml':
362
- import xml.etree.ElementTree as ET
+ from lxml import etree as ET
363
tree = ET.fromstring(v.blob)
364
for footnote in tree.findall('.//w:t', docx.oxml.ns.nsmap):
365
if hasattr(footnote, 'text'):
0 commit comments