mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-30 14:04:27 +00:00
cleaning up
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
parent
3e490c4184
commit
28a09a5029
@ -148,8 +148,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
|
|||||||
if isinstance(item, str):
|
if isinstance(item, str):
|
||||||
return [item]
|
return [item]
|
||||||
|
|
||||||
# result.append(self.get_direct_text(item))
|
|
||||||
|
|
||||||
if item.name not in ["ul", "ol"]:
|
if item.name not in ["ul", "ol"]:
|
||||||
try:
|
try:
|
||||||
# Iterate over the children (and their text and tails)
|
# Iterate over the children (and their text and tails)
|
||||||
@ -255,7 +253,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
|
|||||||
|
|
||||||
if nested_lists:
|
if nested_lists:
|
||||||
name = element.name
|
name = element.name
|
||||||
# text = self.get_direct_text(element)
|
|
||||||
# Text in list item can be hidden within hierarchy, hence
|
# Text in list item can be hidden within hierarchy, hence
|
||||||
# we need to extract it recursively
|
# we need to extract it recursively
|
||||||
text = self.extract_text_recursively(element)
|
text = self.extract_text_recursively(element)
|
||||||
|
Loading…
Reference in New Issue
Block a user