From 28a09a50292714d547d7ab6ccd4cc3432a1f61ac Mon Sep 17 00:00:00 2001 From: Maksym Lysak Date: Fri, 25 Oct 2024 17:56:42 +0200 Subject: [PATCH] cleaning up Signed-off-by: Maksym Lysak --- docling/backend/html_backend.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/docling/backend/html_backend.py b/docling/backend/html_backend.py index 3164a8f6..b8026057 100644 --- a/docling/backend/html_backend.py +++ b/docling/backend/html_backend.py @@ -148,8 +148,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend): if isinstance(item, str): return [item] - # result.append(self.get_direct_text(item)) - if item.name not in ["ul", "ol"]: try: # Iterate over the children (and their text and tails) @@ -255,7 +253,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend): if nested_lists: name = element.name - # text = self.get_direct_text(element) # Text in list item can be hidden within hierarchy, hence # we need to extract it recursively text = self.extract_text_recursively(element)