summaryrefslogtreecommitdiff
path: root/mammoth/documents.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-04-03 18:31:03 +0100
committerMichael Williamson <mike@zwobble.org>2017-04-03 18:31:03 +0100
commitdbcb7129f21201a41ac0c41657e31b0c21b5f724 (patch)
tree6c450d0386641e1747339fb72c788299e6f81efc /mammoth/documents.py
parent495b10c1218773f13d64643f018dc3a2497f22cd (diff)
Read alignment for paragraphs
Diffstat (limited to 'mammoth/documents.py')
-rw-r--r--mammoth/documents.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mammoth/documents.py b/mammoth/documents.py
index fe1cbcb..b1e2c1e 100644
--- a/mammoth/documents.py
+++ b/mammoth/documents.py
@@ -20,6 +20,7 @@ class Paragraph(HasChildren):
style_id = cobble.field()
style_name = cobble.field()
numbering = cobble.field()
+ alignment = cobble.field()
@cobble.data
class Run(HasChildren):
@@ -83,8 +84,8 @@ def document(children, notes=None, comments=None):
comments = []
return Document(children, notes, comments=comments)
-def paragraph(children, style_id=None, style_name=None, numbering=None):
- return Paragraph(children, style_id, style_name, numbering)
+def paragraph(children, style_id=None, style_name=None, numbering=None, alignment=None):
+ return Paragraph(children, style_id, style_name, numbering, alignment=alignment)
def run(
children,