Increase line length to 64 chars and lines per page to 32
Mirror and run GitLab CI / build (push) Waiting to run
Ruff / ruff (push) Waiting to run

This commit is contained in:
admin
2026-06-19 16:12:20 +00:00
parent 2112b8c7e2
commit cb27ba80a1
+3 -3
View File
@@ -458,8 +458,8 @@ def create_transcript_docx(text: str, filename: str):
current_page = [] current_page = []
line_count = 0 line_count = 0
# 48 chars content + 2 digits + 1 tab + 9 spaces = 60 max # 52 chars content + 2 digits + 1 tab + 9 spaces = 64 max
MAX_CONTENT_LEN = 48 MAX_CONTENT_LEN = 52
for raw_line in text.strip().splitlines(): for raw_line in text.strip().splitlines():
raw_line = raw_line.strip() 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 # Add segments to pages, enforcing 29 lines per page
for seg in segments: for seg in segments:
if line_count == 29: if line_count == 32:
prepared_pages.append(current_page) prepared_pages.append(current_page)
current_page = [] current_page = []
line_count = 0 line_count = 0