From 0947e91f15f6b6add56913c42cc060bb2067679c Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 17 Jun 2026 16:55:31 +0000 Subject: [PATCH] Add extra white space between line number and text - First line of each speaker turn: 2 base + 7 extra spaces. - Continuation lines: 2 base + 3 extra spaces. --- scraibe/email_sender.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scraibe/email_sender.py b/scraibe/email_sender.py index 42aeafb..7ca9bfb 100644 --- a/scraibe/email_sender.py +++ b/scraibe/email_sender.py @@ -395,8 +395,15 @@ def _add_transcript_paragraph(doc, line_text, line_number): run_ln.font.size = Pt(12) run_ln.underline = False - # Tab + two spaces between line number and content for extra white space - run_tab = p.add_run("\t ") + # Tab + spaces between line number and content + # - 2 base spaces + 7 more for first line of speaker turn + # - 2 base spaces + 3 more for continuation lines + if m: + extra_spaces = " " # 7 spaces for speaker lines + else: + extra_spaces = " " # 3 spaces for continuation lines + + run_tab = p.add_run("\t " + extra_spaces) run_tab.font.name = "Courier" run_tab.font.size = Pt(12) run_tab.underline = False