diff --git a/format_novel/format_novel.py b/format_novel/format_novel.py index f53d513..acf2cb9 100755 --- a/format_novel/format_novel.py +++ b/format_novel/format_novel.py @@ -70,7 +70,6 @@ def right_align_header(document): def double_space_and_indent(paragraphs): this_paragraph_plaintext = False previous_paragraph_plaintext = False - previous_paragraph_style = None for paragraph in paragraphs: paragraph.paragraph_format.line_spacing = 2 @@ -89,12 +88,7 @@ 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) - # Remove duplicate empty paragraphs to cut down on vertical whitespace. - if paragraph.style == previous_paragraph_style and not paragraph.text: - paragraph._element.getparent().remove(paragraph._element) - previous_paragraph_plaintext = this_paragraph_plaintext - previous_paragraph_style = paragraph.style def parse_arguments(unparsed_arguments):