diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-01-21 19:41:46 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-01-21 19:41:46 +0000 |
| commit | 0cf349525bee7ff17e8db3f8d04f6d1e9218d3f2 (patch) | |
| tree | 462826c044f01e8814d458e5c6cbca35e7c416d4 /mammoth/docx/document_xml.py | |
| parent | 72e5c9810f9ec8f88d62491f37a68abd9927e6fd (diff) | |
Add support for endnotes
Diffstat (limited to 'mammoth/docx/document_xml.py')
| -rw-r--r-- | mammoth/docx/document_xml.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mammoth/docx/document_xml.py b/mammoth/docx/document_xml.py index ce035ad..c4f0b14 100644 --- a/mammoth/docx/document_xml.py +++ b/mammoth/docx/document_xml.py @@ -13,17 +13,17 @@ def read_document_xml_element(element, relationships=None, styles=None, footnote_elements=None, + endnote_elements=None, docx_file=None): - if footnote_elements is None: - footnote_elements = [] + note_elements = (footnote_elements or []) + (endnote_elements or []) reader = _create_reader( numbering=numbering, content_types=content_types, relationships=relationships, styles=styles, - note_elements=footnote_elements, + note_elements=note_elements, docx_file=docx_file, ) return reader(element) |
