Add newline to the output.

The last line of output from tidy did not end with a newline if some
errors were reported.
This commit is contained in:
Zbynek Winkler 2016-04-20 16:40:57 +02:00
parent 6f801e3f3f
commit 01b111c43e

View file

@ -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)