aboutsummaryrefslogtreecommitdiff
path: root/mammoth/documents.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-01 13:39:03 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-01 13:39:03 +0000
commit24c6649d0946f2d7bb8157b75caec42b60a2f1e7 (patch)
tree27d0c0913c22be61aa38c34f8dfe4661adae2863 /mammoth/documents.py
parent71ba0de364add2c5ac0285ae1d8e69cab132baf8 (diff)
Read tab elements
Diffstat (limited to 'mammoth/documents.py')
-rw-r--r--mammoth/documents.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mammoth/documents.py b/mammoth/documents.py
index d054eef..c8082d3 100644
--- a/mammoth/documents.py
+++ b/mammoth/documents.py
@@ -4,6 +4,8 @@ Document = collections.namedtuple("Document", ["children"])
Paragraph = collections.namedtuple("Paragraph", ["children", "style_name", "numbering"])
Run = collections.namedtuple("Run", ["children", "style_name", "is_bold", "is_italic"])
Text = collections.namedtuple("Text", ["value"])
+class Tab(object):
+ pass
document = Document
@@ -15,3 +17,6 @@ def run(children, style_name=None, is_bold=None, is_italic=None):
return Run(children, style_name, bool(is_bold), bool(is_italic))
text = Text
+_tab = Tab()
+def tab():
+ return _tab