diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-13 17:35:08 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-13 17:35:08 +0000 |
| commit | d091e47adf6cd69d986cac935de9d61b7da17f82 (patch) | |
| tree | 60b26aa6fd978f9b0e7f95bb3978ed6c670b5cd3 /mammoth | |
| parent | 47b0e47e2bd117c5a102c19e5e6bcb6088dbdd90 (diff) | |
Move NumberingLevel to documents module
Diffstat (limited to 'mammoth')
| -rw-r--r-- | mammoth/documents.py | 6 | ||||
| -rw-r--r-- | mammoth/docx/numbering_xml.py | 9 |
2 files changed, 9 insertions, 6 deletions
diff --git a/mammoth/documents.py b/mammoth/documents.py index 6ce4582..7fb34b6 100644 --- a/mammoth/documents.py +++ b/mammoth/documents.py @@ -35,3 +35,9 @@ def tab(): image = Image hyperlink = Hyperlink + + +class NumberingLevel(object): + def __init__(self, level_index, is_ordered): + self.level_index = level_index + self.is_ordered = is_ordered diff --git a/mammoth/docx/numbering_xml.py b/mammoth/docx/numbering_xml.py index 77400c1..115d812 100644 --- a/mammoth/docx/numbering_xml.py +++ b/mammoth/docx/numbering_xml.py @@ -1,3 +1,6 @@ +from ..documents import NumberingLevel + + def read_numbering_xml_element(element): abstract_nums = _read_abstract_nums(element) nums = _read_nums(element, abstract_nums) @@ -54,9 +57,3 @@ class Numbering(object): return None else: return num[level] - - -class NumberingLevel(object): - def __init__(self, level_index, is_ordered): - self.level_index = level_index - self.is_ordered = is_ordered |
