tests: Only error for lines starting with tabs

Otherwise we can't even use tabs for testing.
pull/2187/head
Nirbheek Chauhan 7 years ago
parent 20991c0669
commit ef0501fc7d
  1. 2
      run_project_tests.py

@ -585,7 +585,7 @@ def check_file(fname):
with open(fname, 'rb') as f:
lines = f.readlines()
for line in lines:
if b'\t' in line:
if line.startswith(b'\t'):
print("File %s contains a literal tab on line %d. Only spaces are permitted." % (fname, linenum))
sys.exit(1)
if b'\r' in line:

Loading…
Cancel
Save