Black formatting + run black unconditionally.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cbaf681857
commit
b549d8117c
@ -107,7 +107,12 @@ def double_space_and_indent(paragraphs):
|
||||
if this_paragraph_plaintext and previous_paragraph_plaintext:
|
||||
paragraph.paragraph_format.first_line_indent = docx.shared.Inches(0.5)
|
||||
|
||||
if previous_paragraph and paragraph.style == previous_paragraph.style and not paragraph.text and not previous_paragraph.text:
|
||||
if (
|
||||
previous_paragraph
|
||||
and paragraph.style == previous_paragraph.style
|
||||
and not paragraph.text
|
||||
and not previous_paragraph.text
|
||||
):
|
||||
previous_paragraph._element.getparent().remove(previous_paragraph._element)
|
||||
|
||||
previous_paragraph = paragraph
|
||||
|
Loading…
Reference in New Issue
Block a user