aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/tidy.py2
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)