Skip to content

Commit

Permalink
Strip whitespace from messages
Browse files Browse the repository at this point in the history
I'm not sure whether this is necessary but surely it won't hurt.
  • Loading branch information
FichteFoll committed Mar 22, 2018
1 parent cfd01bc commit 71a2682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def run(self, cmd, code):
row = region_offset[0] + i
# Need to account for region column offset only in first row
col = match.start() + (region_offset[1] if i == 0 else 0)
message = match.group('message') or '<no message>'
message = match.group('message').strip() or '<no message>'
word = match.group('error')
if word:
error_type = ERROR
Expand Down

0 comments on commit 71a2682

Please sign in to comment.