From f78f1755b904f0e0fdd15217f32cd64d7d99695b Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Fri, 23 Sep 2022 21:50:21 -0700 Subject: [PATCH] Don't indent after a scene break. --- format_novel/format_novel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/format_novel/format_novel.py b/format_novel/format_novel.py index fb4fecf..ea71950 100755 --- a/format_novel/format_novel.py +++ b/format_novel/format_novel.py @@ -79,7 +79,9 @@ def double_space_and_indent(paragraphs): # To reduce page count, allow splitting paragraphs across pages. paragraph.paragraph_format.widow_control = False - this_paragraph_plaintext = not paragraph.style.name.startswith('Heading') + this_paragraph_plaintext = ( + not paragraph.style.name.startswith('Heading') and paragraph.style.name != '0 Block' + ) # Indent first lines of paragraphs except for styled ones (headings, etc.) and initial # paragraphs.