diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-01 13:25:28 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-01 13:25:28 +0000 |
| commit | 8fc128a3e70465b82605b4c0bdb3d1a6ffe87ef6 (patch) | |
| tree | acecd2ed471a944c846a8b8ecf05138e182c594a /mammoth/documents.py | |
| parent | 26f2353d42ddd4a87f6f9f56711495bd3799fc8d (diff) | |
Read numbering properties in paragraph properties
Diffstat (limited to 'mammoth/documents.py')
| -rw-r--r-- | mammoth/documents.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mammoth/documents.py b/mammoth/documents.py index 58e4f6b..08e3bba 100644 --- a/mammoth/documents.py +++ b/mammoth/documents.py @@ -1,11 +1,11 @@ import collections -def paragraph(children, style_name=None): - return Paragraph(children, style_name) +def paragraph(children, style_name=None, numbering=None): + return Paragraph(children, style_name, numbering) Document = collections.namedtuple("Document", ["children"]) -Paragraph = collections.namedtuple("Paragraph", ["children", "style_name"]) +Paragraph = collections.namedtuple("Paragraph", ["children", "style_name", "numbering"]) Run = collections.namedtuple("Run", ["children"]) Text = collections.namedtuple("Text", ["value"]) |
