mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-28 04:54:19 +00:00
Strip elements
Signed-off-by: SimJeg <sjegou@nvidia.com>
This commit is contained in:
parent
473a51adca
commit
60306f9a83
@ -304,7 +304,7 @@ class MsWordDocumentBackend(DeclarativeDocumentBackend):
|
||||
|
||||
# If the style changes for a non empty text, add the previous group
|
||||
if len(group_text.strip()) > 0:
|
||||
paragraph_elements.append((group_text, previous_format, None))
|
||||
paragraph_elements.append((group_text.strip(), previous_format, None))
|
||||
group_text = ""
|
||||
|
||||
# If there is a hyperlink, add it immediately
|
||||
|
Loading…
Reference in New Issue
Block a user