Skip to content

Commit

Permalink
Allowing whitespace-only lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
eswald committed Mar 23, 2015
1 parent 4f96323 commit ebb3dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion travis/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class TrailingWhitespaceLinter(Linter):
msg = 'Contains trailing whitespace'
def check_line(self, line):
line = line.replace('\r', '')
return not line.endswith(' ') and not line.endswith('\t')
return not line.strip() or not line.endswith(' ') and not line.endswith('\t')
def fix_line(self, line):
return line.rstrip('\t ')

Expand Down

0 comments on commit ebb3dc4

Please sign in to comment.