From c979eaab1ac3738a1629e4343b2b108f0c47e93a Mon Sep 17 00:00:00 2001 From: Rafael Teixeira de Lima Date: Wed, 2 Apr 2025 12:02:05 +0200 Subject: [PATCH] Remove trailing space Signed-off-by: Rafael Teixeira de Lima --- docling/backend/msword_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docling/backend/msword_backend.py b/docling/backend/msword_backend.py index 8b553828..5094c8f9 100644 --- a/docling/backend/msword_backend.py +++ b/docling/backend/msword_backend.py @@ -429,7 +429,7 @@ class MsWordDocumentBackend(DeclarativeDocumentBackend): doc.add_text( label=DocItemLabel.PARAGRAPH, parent=inline_equation, - text=text_tmp, + text=text_tmp.strip(), ) elif p_style_id in [