Skip to content

Commit a828b00

Browse files
committed
Avoid duplicating default level index
1 parent 82bc0fe commit a828b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mammoth/docx/numbering_xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _read_abstract_num_levels(element):
5151
else:
5252
levels[level.level_index] = level
5353

54-
if "0" not in levels and level_without_index is not None:
54+
if level_without_index is not None and level_without_index.level_index not in levels:
5555
levels[level_without_index.level_index] = level_without_index
5656

5757
return levels

0 commit comments

Comments
 (0)