Add extra white space between line number and text
Mirror and run GitLab CI / build (push) Has been cancelled
Ruff / ruff (push) Has been cancelled

- First line of each speaker turn: 2 base + 7 extra spaces.
- Continuation lines: 2 base + 3 extra spaces.
This commit is contained in:
admin
2026-06-17 16:55:31 +00:00
parent 1d447f2836
commit 0947e91f15
+9 -2
View File
@@ -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