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.
This commit is contained in:
@@ -395,8 +395,15 @@ def _add_transcript_paragraph(doc, line_text, line_number):
|
|||||||
run_ln.font.size = Pt(12)
|
run_ln.font.size = Pt(12)
|
||||||
run_ln.underline = False
|
run_ln.underline = False
|
||||||
|
|
||||||
# Tab + two spaces between line number and content for extra white space
|
# Tab + spaces between line number and content
|
||||||
run_tab = p.add_run("\t ")
|
# - 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.name = "Courier"
|
||||||
run_tab.font.size = Pt(12)
|
run_tab.font.size = Pt(12)
|
||||||
run_tab.underline = False
|
run_tab.underline = False
|
||||||
|
|||||||
Reference in New Issue
Block a user