aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx/document_xml.py
diff options
context:
space:
mode:
Diffstat (limited to 'mammoth/docx/document_xml.py')
-rw-r--r--mammoth/docx/document_xml.py17
1 files changed, 2 insertions, 15 deletions
diff --git a/mammoth/docx/document_xml.py b/mammoth/docx/document_xml.py
index 7288dc2..3cdbec2 100644
--- a/mammoth/docx/document_xml.py
+++ b/mammoth/docx/document_xml.py
@@ -1,27 +1,14 @@
from .. import documents
from .. import results
-from . import body_xml
def read_document_xml_element(element,
- numbering=None,
- content_types=None,
- relationships=None,
- styles=None,
+ body_reader,
footnote_elements=None,
- endnote_elements=None,
- docx_file=None):
+ endnote_elements=None):
note_elements = (footnote_elements or []) + (endnote_elements or [])
- body_reader = body_xml.reader(
- numbering=numbering,
- content_types=content_types,
- relationships=relationships,
- styles=styles,
- docx_file=docx_file,
- )
-
def _read_note(element):
return body_reader.read_all(element.body).map(
lambda body: documents.note(element.note_type, element.id, body))