mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-30 14:04:27 +00:00
restructure title fix (#187)
Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
This commit is contained in:
parent
fc12cda82b
commit
14b63a3e7d
@ -179,10 +179,8 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
|
||||
self.parents[self.level] = doc.add_text(
|
||||
parent=self.parents[0], label=DocItemLabel.TITLE, text=text
|
||||
)
|
||||
|
||||
return # dont add another heading with the same text!
|
||||
|
||||
elif hlevel > self.level:
|
||||
else:
|
||||
if hlevel > self.level:
|
||||
|
||||
# add invisible group
|
||||
for i in range(self.level + 1, hlevel):
|
||||
|
Loading…
Reference in New Issue
Block a user