mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-02 07:22:14 +00:00
Update docling/backend/msword_backend.py
Co-authored-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> Signed-off-by: Maxim Lysak <101627549+maxmnemonic@users.noreply.github.com>
This commit is contained in:
parent
53f6d95877
commit
440685c65f
@ -264,7 +264,7 @@ class MsWordDocumentBackend(DeclarativeDocumentBackend):
|
||||
and p_style_id not in ["Title", "Heading"]
|
||||
): # Close list
|
||||
if self.level_at_new_list:
|
||||
for key, val in self.parents.items():
|
||||
for key in range(len(self.parents)):
|
||||
if key >= self.level_at_new_list:
|
||||
self.parents[key] = None
|
||||
self.level = self.level_at_new_list - 1
|
||||
|
Loading…
Reference in New Issue
Block a user