Fix paragraph first-line indenting to (still) not apply to text conversations while applying to fully italicized paragraphs.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
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.
|
# To reduce page count, allow splitting paragraphs across pages.
|
||||||
paragraph.paragraph_format.widow_control = False
|
paragraph.paragraph_format.widow_control = False
|
||||||
|
|
||||||
this_paragraph_plaintext = (
|
this_paragraph_plaintext = not (
|
||||||
not paragraph.style.name.startswith('Heading') and paragraph.style.name != '0 Block' and not paragraph.style.name.startswith('Para ')
|
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
|
# Indent first lines of paragraphs except for styled ones (headings, etc.) and initial
|
||||||
|
|
Loading…
Reference in New Issue