aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx/document_xml.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-06-15 14:22:26 +0100
committerMichael Williamson <mike@zwobble.org>2015-06-15 14:22:26 +0100
commit3ea79e23d3211b937c2c75f1390b212b25cc2fcb (patch)
treea7201a8d539b38e77276397035d04bcf4ec74f1b /mammoth/docx/document_xml.py
parentabc07c40f2a80468292b13ddb6714972bb73b7af (diff)
Read mc:Fallback when reading mc:AlternateContent
Diffstat (limited to 'mammoth/docx/document_xml.py')
-rw-r--r--mammoth/docx/document_xml.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mammoth/docx/document_xml.py b/mammoth/docx/document_xml.py
index 9477ab5..70e25a5 100644
--- a/mammoth/docx/document_xml.py
+++ b/mammoth/docx/document_xml.py
@@ -248,6 +248,10 @@ def _create_reader(numbering, content_types, relationships, styles, note_element
note_reference_reader("footnote")
note_reference_reader("endnote")
+ @handler("mc:AlternateContent")
+ def alternate_content(element):
+ return read_child_elements(element.find_child("mc:Fallback"))
+
def read(element):
handler = _handlers.get(element.name)
if handler is None: