Update combined .docx order: cover page, page break, summary, page break, transcript
This commit is contained in:
+13
-12
@@ -454,24 +454,25 @@ def create_combined_docx(
|
||||
):
|
||||
"""
|
||||
Create a combined .docx with:
|
||||
- Transcript cover page
|
||||
- Transcript content
|
||||
- Page break
|
||||
- Summary cover page
|
||||
- Summary content
|
||||
1) Transcript cover page
|
||||
2) Page break
|
||||
3) Summary content
|
||||
4) Page break
|
||||
5) Transcript content
|
||||
"""
|
||||
doc = Document()
|
||||
_setup_docx_style(doc)
|
||||
|
||||
# Transcript cover page
|
||||
# 1) Transcript cover page (includes trailing page break)
|
||||
_add_cover_page(doc, "TRANSCRIPT", transcript_cover_date, transcript_cover_desc)
|
||||
_add_transcript_content(doc, transcript_text)
|
||||
|
||||
# Page break before summary
|
||||
doc.add_page_break()
|
||||
|
||||
# Summary cover page
|
||||
_add_cover_page(doc, "SUMMARY", summary_cover_date, summary_cover_desc)
|
||||
# 3) Summary content
|
||||
_add_summary_content(doc, summary_text)
|
||||
|
||||
# 4) Page break before transcript
|
||||
doc.add_page_break()
|
||||
|
||||
# 5) Transcript content
|
||||
_add_transcript_content(doc, transcript_text)
|
||||
|
||||
doc.save(filename)
|
||||
|
||||
Reference in New Issue
Block a user