To reduce page count, allow splitting paragraphs across pages.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Dan Helfman 2022-03-05 22:12:54 -08:00
parent c4bbbb5dab
commit b958a537de
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ def double_space_and_indent(paragraphs):
paragraph.paragraph_format.space_before = docx.shared.Inches(0)
paragraph.paragraph_format.space_after = docx.shared.Inches(0)
# To reduce page count, allow splitting paragraphs across pages.
paragraph.paragraph_format.widow_control = False
this_paragraph_plaintext = not paragraph.style.name.startswith('Heading')
# Indent first lines of paragraphs except for styled ones (headings, etc.) and initial