Skip to content

Commit

Permalink
chore(html): reduce verbosity in HTML backend
Browse files Browse the repository at this point in the history
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
  • Loading branch information
ceberam committed Feb 26, 2025
1 parent 84ef902 commit 4f949b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docling/backend/html_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def handle_list_item(self, element: Tag, doc: DoclingDocument) -> None:

parent = self.parents[self.level]
if parent is None:
_log.warning(f"list-item has no parent in DoclingDocument: {element}")
_log.debug(f"list-item has no parent in DoclingDocument: {element}")
return
parent_label: str = parent.label
index_in_list = len(parent.children) + 1
Expand Down Expand Up @@ -338,13 +338,13 @@ def handle_list_item(self, element: Tag, doc: DoclingDocument) -> None:
parent=parent,
)
else:
_log.warning(f"list-item has no text: {element}")
_log.debug(f"list-item has no text: {element}")

@staticmethod
def parse_table_data(element: Tag) -> Optional[TableData]:
nested_tables = element.find("table")
if nested_tables is not None:
_log.warning("Skipping nested table.")
_log.debug("Skipping nested table.")
return None

# Count the number of rows (number of <tr> elements)
Expand Down

0 comments on commit 4f949b7

Please sign in to comment.