diff options
author | Mathieu Rheaume <mathieu@codingrhemes.com> | 2015-09-20 19:59:39 -0400 |
---|---|---|
committer | Mathieu Rheaume <mathieu@codingrhemes.com> | 2015-09-21 22:25:32 -0400 |
commit | 705d8f7a1c3dccaa4205a8c1aa353433320823bc (patch) | |
tree | 95e8d0fe49b9d47dc3591326be7ed3492c427eff /python/tidy.py | |
parent | 566f1eb6f6886ab87c2c1813ec13a34074cced8e (diff) | |
download | servo-705d8f7a1c3dccaa4205a8c1aa353433320823bc.tar.gz servo-705d8f7a1c3dccaa4205a8c1aa353433320823bc.zip |
Raise max length error over 120 chars not at 120 chars. python/tidy.py
Diffstat (limited to 'python/tidy.py')
-rw-r--r-- | python/tidy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tidy.py b/python/tidy.py index 87e1cf142a7..eed16f41f15 100644 --- a/python/tidy.py +++ b/python/tidy.py @@ -76,7 +76,7 @@ def check_length(file_name, idx, line): if file_name.endswith(".lock"): raise StopIteration max_length = 120 - if len(line) >= max_length: + if len(line.rstrip('\n')) > max_length: yield (idx + 1, "Line is longer than %d characters" % max_length) |