Message ID | s9dwp6v6x3h.fsf@redhat.com |
---|---|
State | New |
Headers | show |
--- check-localedef.py.~1~ 2017-07-26 08:14:27.052046435 +0200 +++ check-localedef.py 2017-07-26 16:32:50.625185637 +0200 @@ -369,6 +369,9 @@ if c != ' ' and not isgraph(c): log.error(fp.lineno, "inappropriate character {!r} in {}", c, "string" if end_char == '"' else "symbol") + if c == ' ' and tbuf[-1:] == [' ']: + log.error(fp.lineno, "suspicous sequence of spaces {}", tbuf) + tbuf.append(c) else: tbuf.append(c)