mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-31 14:34:40 +00:00
removed prints
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
parent
7332360e27
commit
3e490c4184
@ -136,8 +136,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
|
|||||||
def get_direct_text(self, item):
|
def get_direct_text(self, item):
|
||||||
"""Get the direct text of the <li> element (ignoring nested lists)."""
|
"""Get the direct text of the <li> element (ignoring nested lists)."""
|
||||||
text = item.find(string=True, recursive=False)
|
text = item.find(string=True, recursive=False)
|
||||||
print(text)
|
|
||||||
|
|
||||||
if isinstance(text, str):
|
if isinstance(text, str):
|
||||||
return text.strip()
|
return text.strip()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user