cleaning up

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
Maksym Lysak 2024-10-25 17:56:42 +02:00
parent 3e490c4184
commit 28a09a5029

View File

@ -148,8 +148,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
if isinstance(item, str):
return [item]
# result.append(self.get_direct_text(item))
if item.name not in ["ul", "ol"]:
try:
# Iterate over the children (and their text and tails)
@ -255,7 +253,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
if nested_lists:
name = element.name
# text = self.get_direct_text(element)
# Text in list item can be hidden within hierarchy, hence
# we need to extract it recursively
text = self.extract_text_recursively(element)