From da14e8225e48250375c2f9aa07d195f7f5e9a5b8 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 28 Jan 2020 19:21:11 +0100 Subject: [PATCH] Remove useless blank line removal in ChangeLog.write The parsing functions eliminate blank lines, so there shouldn't be any at this stage. --- scripts/assemble_changelog.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/assemble_changelog.py b/scripts/assemble_changelog.py index 1d4755708..a5a114c67 100755 --- a/scripts/assemble_changelog.py +++ b/scripts/assemble_changelog.py @@ -168,10 +168,6 @@ class ChangeLog: for line in self.header: out.write(line) for section, lines in self.section_content.items(): - while lines and not lines[0].strip(): - del lines[0] - while lines and not lines[-1].strip(): - del lines[-1] if not lines: continue out.write(b'### ' + section + b'\n\n')