mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-31 14:34:40 +00:00
chore(html): reduce verbosity in HTML backend
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
This commit is contained in:
parent
413f6e8a88
commit
252c185ae0
@ -281,7 +281,7 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
|
||||
|
||||
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
|
||||
@ -338,13 +338,13 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user