Fix paragraph first-line indenting to (still) not apply to text conversations while applying to fully italicized paragraphs.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
7a522f33ef
commit
a8c02abcf0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user