gcc-changelog: do not allow space in long line
contrib/ChangeLog: * gcc-changelog/git_commit.py: Do not allow space in long lines.
This commit is contained in:
parent
598359f627
commit
1c35444b91
@ -416,7 +416,7 @@ class GitCommit:
|
||||
self.errors.append(Error('trailing whitespace', line))
|
||||
if len(line.replace('\t', ' ' * TAB_WIDTH)) > LINE_LIMIT:
|
||||
# support long filenames
|
||||
if not line.startswith('\t* ') or not line.endswith(':'):
|
||||
if not line.startswith('\t* ') or not line.endswith(':') or ' ' in line[3:-1]:
|
||||
self.errors.append(Error('line exceeds %d character limit'
|
||||
% LINE_LIMIT, line))
|
||||
m = changelog_regex.match(line)
|
||||
|
Loading…
Reference in New Issue
Block a user