From cb949f4ca27bcb22867d613b6ce2caa4913663d3 Mon Sep 17 00:00:00 2001 From: ka-weihe Date: Wed, 16 Apr 2025 13:00:52 +0200 Subject: [PATCH] Remove comments Signed-off-by: ka-weihe --- docling/backend/html_backend.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docling/backend/html_backend.py b/docling/backend/html_backend.py index 516c24e1..8b595ae1 100644 --- a/docling/backend/html_backend.py +++ b/docling/backend/html_backend.py @@ -178,7 +178,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend): elif tag.name == "img": self.handle_image(tag, doc) elif tag.name == "a": - # New branch to handle anchor tags. self.handle_anchor(tag, doc) else: self.walk(tag, doc) @@ -554,6 +553,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend): parent=self.parents[self.level], label=DocItemLabel.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, )