From 6e47055a0b578bbea3ae9bab6a95c046fb666332 Mon Sep 17 00:00:00 2001 From: Mateusz Starzyk Date: Wed, 24 Mar 2021 12:13:33 +0100 Subject: [PATCH] Allow changelog entries to have URLs exceeding 80 char limit. Signed-off-by: Mateusz Starzyk --- scripts/assemble_changelog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/assemble_changelog.py b/scripts/assemble_changelog.py index 39632aabf..147bae063 100755 --- a/scripts/assemble_changelog.py +++ b/scripts/assemble_changelog.py @@ -220,7 +220,8 @@ class ChangeLog: body_split = category.body.splitlines() for line_number, line in enumerate(body_split, 1): - if len(line) > MAX_LINE_LENGTH: + if not re.match('.*http[s]?://.*', line.decode('utf-8')) and \ + len(line) > MAX_LINE_LENGTH: raise InputFormatError(filename, category.body_line + line_number, 'Line is longer than allowed: Length {} (Max {})',