From fe23daf8a3c0186f941068011761e34bd1ab7c99 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Mon, 4 Dec 2023 14:37:31 +0100 Subject: [PATCH] Remove leftover code from initial changelog support Signed-off-by: Gabor Mezei --- scripts/assemble_changelog.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/assemble_changelog.py b/scripts/assemble_changelog.py index b2fa96a07..07e6fc58a 100755 --- a/scripts/assemble_changelog.py +++ b/scripts/assemble_changelog.py @@ -246,10 +246,7 @@ class ChangeLog: self.categories = OrderedDict() for category in STANDARD_CATEGORIES: self.categories[category] = '' - if self.header: - offset = (self.header + self.top_version_title).count('\n') + 1 - else: - offset = 0 + offset = (self.header + self.top_version_title).count('\n') + 1 self.add_categories_from_text(input_stream.name, offset, top_version_body, True)