Skip to content

Commit 613302d

Browse files
committed
Fix trailing space
1 parent b91bfd9 commit 613302d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docling/backend/msword_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ def handle_text_elements(
412412
if len(text_tmp) == 0:
413413
break
414414

415-
pre_eq_text = text_tmp.split(eq, maxsplit=1)[0]
416-
text_tmp = text_tmp.split(eq, maxsplit=1)[1]
415+
pre_eq_text = text_tmp.split(eq.strip(), maxsplit=1)[0]
416+
text_tmp = text_tmp.split(eq.strip(), maxsplit=1)[1]
417417
if len(pre_eq_text) > 0:
418418
doc.add_text(
419419
label=DocItemLabel.PARAGRAPH,

0 commit comments

Comments
 (0)