diff --git a/format_novel/format_novel.py b/format_novel/format_novel.py index 4be1cb8..ba21f68 100755 --- a/format_novel/format_novel.py +++ b/format_novel/format_novel.py @@ -80,8 +80,11 @@ 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') and paragraph.style.name != '0 Block' and not paragraph.style.name.startswith('Para ') + this_paragraph_plaintext = not ( + paragraph.style.name.startswith('Heading') + or paragraph.style.name == '0 Block' + or paragraph.style.paragraph_format.left_indent + or paragraph.style.paragraph_format.right_indent ) # Indent first lines of paragraphs except for styled ones (headings, etc.) and initial