mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-01 15:02:21 +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]
|
parent = self.parents[self.level]
|
||||||
if parent is None:
|
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
|
return
|
||||||
parent_label: str = parent.label
|
parent_label: str = parent.label
|
||||||
index_in_list = len(parent.children) + 1
|
index_in_list = len(parent.children) + 1
|
||||||
@ -338,13 +338,13 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
|
|||||||
parent=parent,
|
parent=parent,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
_log.warning(f"list-item has no text: {element}")
|
_log.debug(f"list-item has no text: {element}")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def parse_table_data(element: Tag) -> Optional[TableData]:
|
def parse_table_data(element: Tag) -> Optional[TableData]:
|
||||||
nested_tables = element.find("table")
|
nested_tables = element.find("table")
|
||||||
if nested_tables is not None:
|
if nested_tables is not None:
|
||||||
_log.warning("Skipping nested table.")
|
_log.debug("Skipping nested table.")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# Count the number of rows (number of <tr> elements)
|
# Count the number of rows (number of <tr> elements)
|
||||||
|
Loading…
Reference in New Issue
Block a user