diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-01 13:39:03 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-01 13:39:03 +0000 |
| commit | 24c6649d0946f2d7bb8157b75caec42b60a2f1e7 (patch) | |
| tree | 27d0c0913c22be61aa38c34f8dfe4661adae2863 /mammoth/docx/document_xml.py | |
| parent | 71ba0de364add2c5ac0285ae1d8e69cab132baf8 (diff) | |
Read tab elements
Diffstat (limited to 'mammoth/docx/document_xml.py')
| -rw-r--r-- | mammoth/docx/document_xml.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mammoth/docx/document_xml.py b/mammoth/docx/document_xml.py index 4bfb8d1..59f9920 100644 --- a/mammoth/docx/document_xml.py +++ b/mammoth/docx/document_xml.py @@ -66,9 +66,13 @@ def _create_reader(numbering): @handler("w:document") def document(element): body_element = _find_child(element, "w:body") - return documents.Document(_read_xml_elements(body_element.children)) + return documents.document(_read_xml_elements(body_element.children)) + @handler("w:tab") + def tab(element): + return documents.tab() + def read(element): handler = _handlers.get(element.name) if handler is None: |
