diff options
| -rw-r--r-- | mammoth/docx/numbering_xml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/docx/numbering_xml.py b/mammoth/docx/numbering_xml.py index 4614d0e..0bd1952 100644 --- a/mammoth/docx/numbering_xml.py +++ b/mammoth/docx/numbering_xml.py @@ -51,7 +51,7 @@ def _read_abstract_num_levels(element): else: levels[level.level_index] = level - if "0" not in levels and level_without_index is not None: + if level_without_index is not None and level_without_index.level_index not in levels: levels[level_without_index.level_index] = level_without_index return levels |
