diff options
author | Martin Liska <mliska@suse.cz> | 2021-04-12 14:11:27 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-04-12 14:11:27 +0200 |
commit | 1c35444b919683be23208479312a45e73d23ed35 (patch) | |
tree | 59e58fe4dae75f9ec39fe26c2d5440246f498124 /contrib | |
parent | 598359f627dec765eb74e31d9e96901a68bbfb97 (diff) | |
download | gcc-1c35444b919683be23208479312a45e73d23ed35.zip gcc-1c35444b919683be23208479312a45e73d23ed35.tar.gz gcc-1c35444b919683be23208479312a45e73d23ed35.tar.bz2 |
gcc-changelog: do not allow space in long line
contrib/ChangeLog:
* gcc-changelog/git_commit.py: Do not allow space in long lines.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/gcc-changelog/git_commit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 90e908e..b28f7de 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -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) |