Don't indent the first paragraph after a section break.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dan Helfman 2024-01-20 14:21:13 -08:00
parent 9e019c3d8c
commit 7691e7b522

View File

@ -93,6 +93,7 @@ def double_space_and_indent(paragraphs, format_all):
this_paragraph_plaintext = not ( this_paragraph_plaintext = not (
paragraph.style.name.startswith('Heading') paragraph.style.name.startswith('Heading')
or paragraph.style.name == '0 Block' or paragraph.style.name == '0 Block'
or paragraph.text == '#'
or paragraph.style.paragraph_format.left_indent or paragraph.style.paragraph_format.left_indent
or paragraph.style.paragraph_format.right_indent or paragraph.style.paragraph_format.right_indent
) )