diff options
Diffstat (limited to 'mammoth')
| -rw-r--r-- | mammoth/docx/document_xml.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mammoth/docx/document_xml.py b/mammoth/docx/document_xml.py index 14d36a6..e4682a6 100644 --- a/mammoth/docx/document_xml.py +++ b/mammoth/docx/document_xml.py @@ -100,7 +100,9 @@ def _create_reader(numbering, content_types, relationships, docx_file): @handler("w:ins") - def ins(element): + @handler("w:smartTag") + @handler("w:drawing") + def read_child_elements(element): return _read_xml_elements(element.children) @@ -114,11 +116,6 @@ def _create_reader(numbering, content_types, relationships, docx_file): href = relationships[relationship_id].target return children_result.map(lambda children: documents.hyperlink(href, children)) - - @handler("w:drawing") - def drawing(element): - return _read_xml_elements(element.children) - @handler("wp:inline") @handler("wp:anchor") def inline(element): |
