Allow changelog entries to have URLs exceeding 80 char limit.
Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
This commit is contained in:
parent
49eee980c3
commit
6e47055a0b
@ -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 {})',
|
||||
|
Loading…
Reference in New Issue
Block a user