mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 20:44:16 +00:00
Remove comments
Signed-off-by: ka-weihe <k@weihe.dk>
This commit is contained in:
parent
61a5d95b20
commit
cb949f4ca2
@ -178,7 +178,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
|
|||||||
elif tag.name == "img":
|
elif tag.name == "img":
|
||||||
self.handle_image(tag, doc)
|
self.handle_image(tag, doc)
|
||||||
elif tag.name == "a":
|
elif tag.name == "a":
|
||||||
# New branch to handle anchor tags.
|
|
||||||
self.handle_anchor(tag, doc)
|
self.handle_anchor(tag, doc)
|
||||||
else:
|
else:
|
||||||
self.walk(tag, doc)
|
self.walk(tag, doc)
|
||||||
@ -554,6 +553,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
|
|||||||
parent=self.parents[self.level],
|
parent=self.parents[self.level],
|
||||||
label=DocItemLabel.TEXT,
|
label=DocItemLabel.TEXT,
|
||||||
text=display_text,
|
text=display_text,
|
||||||
hyperlink=href if href else None, # Pass the hyperlink as a separate parameter
|
hyperlink=href if href else None,
|
||||||
content_layer=self.content_layer,
|
content_layer=self.content_layer,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user