From 01b111c43e88c94f5fec3bdb566c0ad1e6d409c7 Mon Sep 17 00:00:00 2001 From: Zbynek Winkler Date: Wed, 20 Apr 2016 16:40:57 +0200 Subject: [PATCH] Add newline to the output. The last line of output from tidy did not end with a newline if some errors were reported. --- python/tidy/servo_tidy/tidy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index 0baa11dfe90..9ee99edcf9d 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -647,6 +647,7 @@ def scan(faster=False, progress=True): error = None for error in errors: print "\r\033[94m{}\033[0m:\033[93m{}\033[0m: \033[91m{}\033[0m".format(*error) + print if error is None: - print "\n\033[92mtidy reported no errors.\033[0m" + print "\033[92mtidy reported no errors.\033[0m" return int(error is not None)