From e248e83f9f23ffe07bc54579522bf3182018b68f Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 27 Mar 2020 19:42:38 +0100 Subject: [PATCH] Start numbering lines at 1 Signed-off-by: Gilles Peskine --- scripts/assemble_changelog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/assemble_changelog.py b/scripts/assemble_changelog.py index 9afe3db08..04409ee9f 100755 --- a/scripts/assemble_changelog.py +++ b/scripts/assemble_changelog.py @@ -216,14 +216,14 @@ class ChangeLog: self.categories = OrderedDict() for category in STANDARD_CATEGORIES: self.categories[category] = b'' - offset = (self.header + self.top_version_title).count(b'\n') + offset = (self.header + self.top_version_title).count(b'\n') + 1 self.add_categories_from_text(input_stream.name, offset, top_version_body, True) def add_file(self, input_stream): """Add changelog entries from a file. """ - self.add_categories_from_text(input_stream.name, 0, + self.add_categories_from_text(input_stream.name, 1, input_stream.read(), False) def write(self, filename):