diff options
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) |
