public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-8131] gcc-changelog: do not allow space in long line
@ 2021-04-12 12:12 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-04-12 12:12 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1c35444b919683be23208479312a45e73d23ed35
commit r11-8131-g1c35444b919683be23208479312a45e73d23ed35
Author: Martin Liska <mliska@suse.cz>
Date: Mon Apr 12 14:11:27 2021 +0200
gcc-changelog: do not allow space in long line
contrib/ChangeLog:
* gcc-changelog/git_commit.py: Do not allow space in long lines.
Diff:
---
contrib/gcc-changelog/git_commit.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py
index 90e908e375c..b28f7deac23 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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-12 12:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12 12:12 [gcc r11-8131] gcc-changelog: do not allow space in long line Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).