Skip to content

Commit

Permalink
Update docling/backend/msword_backend.py
Browse files Browse the repository at this point in the history
Co-authored-by: Cesar Berrospi Ramis <[email protected]>
Signed-off-by: Maxim Lysak <[email protected]>
  • Loading branch information
maxmnemonic and ceberam authored Jan 31, 2025
1 parent c2f048b commit 53f6d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docling/backend/msword_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def handle_text_elements(self, element, docx_obj, doc):
self.level = self.level_at_new_list - 1
self.level_at_new_list = None
else:
for key, val in self.parents.items():
for key in range(len(self.parents)):
self.parents[key] = None
self.level = 0

Expand Down

0 comments on commit 53f6d95

Please sign in to comment.