mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
6f801e3f3f
commit
01b111c43e
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue