Allow changelog entries to have URLs exceeding 80 char limit.
Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
diff --git a/scripts/assemble_changelog.py b/scripts/assemble_changelog.py
index 39632aa..147bae0 100755
--- a/scripts/assemble_changelog.py
+++ b/scripts/assemble_changelog.py
@@ -220,7 +220,8 @@
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 {})',