Browse Source

Remove vertical spacing between paragraphs.

master
Dan Helfman 1 week ago
parent
commit
792a4481b3
  1. 3
      format_novel/format_novel.py

3
format_novel/format_novel.py

@ -57,6 +57,9 @@ def double_space_and_indent(paragraphs):
for paragraph in paragraphs:
paragraph.paragraph_format.line_spacing = 2
paragraph.paragraph_format.space_before = docx.shared.Inches(0)
paragraph.paragraph_format.space_after = docx.shared.Inches(0)
this_paragraph_plaintext = bool(paragraph.style.name == 'Normal')
# Indent first lines of paragraphs except for styled ones (headings, etc.) and initial

Loading…
Cancel
Save