Remove useless blank line removal in ChangeLog.write

The parsing functions eliminate blank lines, so there shouldn't be any
at this stage.
This commit is contained in:
Gilles Peskine 2020-01-28 19:21:11 +01:00
parent 37d670a1e1
commit da14e8225e

View File

@ -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')