diff options
Diffstat (limited to 'mammoth/docx/document_xml.py')
| -rw-r--r-- | mammoth/docx/document_xml.py | 4 |
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: |
