Increase line length to 64 chars and lines per page to 32
This commit is contained in:
@@ -458,8 +458,8 @@ def create_transcript_docx(text: str, filename: str):
|
||||
current_page = []
|
||||
line_count = 0
|
||||
|
||||
# 48 chars content + 2 digits + 1 tab + 9 spaces = 60 max
|
||||
MAX_CONTENT_LEN = 48
|
||||
# 52 chars content + 2 digits + 1 tab + 9 spaces = 64 max
|
||||
MAX_CONTENT_LEN = 52
|
||||
|
||||
for raw_line in text.strip().splitlines():
|
||||
raw_line = raw_line.strip()
|
||||
@@ -483,7 +483,7 @@ def create_transcript_docx(text: str, filename: str):
|
||||
|
||||
# Add segments to pages, enforcing 29 lines per page
|
||||
for seg in segments:
|
||||
if line_count == 29:
|
||||
if line_count == 32:
|
||||
prepared_pages.append(current_page)
|
||||
current_page = []
|
||||
line_count = 0
|
||||
|
||||
Reference in New Issue
Block a user