Add two spaces after line number and reduce max chars to 57
- Insert two spaces after the tab between line number and content. - Reduce max_chars from 58 to 57 to slightly shorten each visual line.
This commit is contained in:
@@ -395,8 +395,8 @@ 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 between line number and content
|
# Tab + two spaces between line number and content for extra white space
|
||||||
run_tab = p.add_run("\t")
|
run_tab = p.add_run("\t ")
|
||||||
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
|
||||||
@@ -458,7 +458,7 @@ def create_transcript_docx(text: str, filename: str):
|
|||||||
_create_transcript_section_properties(doc.sections[0])
|
_create_transcript_section_properties(doc.sections[0])
|
||||||
|
|
||||||
# Max characters per visual line (for 12pt Courier, 1" margins)
|
# Max characters per visual line (for 12pt Courier, 1" margins)
|
||||||
max_chars = 58
|
max_chars = 57
|
||||||
|
|
||||||
# Lines per page before restarting numbering
|
# Lines per page before restarting numbering
|
||||||
lines_per_page = 29
|
lines_per_page = 29
|
||||||
|
|||||||
Reference in New Issue
Block a user