Strip elements

Signed-off-by: SimJeg <sjegou@nvidia.com>
This commit is contained in:
SimJeg 2025-03-31 16:39:40 +02:00
parent 473a51adca
commit 60306f9a83

View File

@ -304,7 +304,7 @@ class MsWordDocumentBackend(DeclarativeDocumentBackend):
# If the style changes for a non empty text, add the previous group # If the style changes for a non empty text, add the previous group
if len(group_text.strip()) > 0: 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 = "" group_text = ""
# If there is a hyperlink, add it immediately # If there is a hyperlink, add it immediately