Allow changelog entries to have URLs exceeding 80 char limit.

Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
This commit is contained in:
Mateusz Starzyk 2021-03-24 12:13:33 +01:00
parent 49eee980c3
commit 6e47055a0b

View file

@ -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 {})',