mirror of https://github.com/catchorg/Catch2.git
Fixed inconsistent and trailing whitespace
This means that all tabs used in indentation are now 4 spaces and that there should be no more trailing whitespace. Ill also look into creating a pre-commit hook that will prevent this from happening in the future. Fixes #105
This commit is contained in:
parent
60a9ac7e65
commit
c390c4cb9f
|
@ -24,6 +24,7 @@ def fixFile( path ):
|
||||||
changed = 0
|
changed = 0
|
||||||
for line in f:
|
for line in f:
|
||||||
trimmed = line.rstrip() + "\n"
|
trimmed = line.rstrip() + "\n"
|
||||||
|
trimmed = trimmed.replace('\t', ' ')
|
||||||
if trimmed != line:
|
if trimmed != line:
|
||||||
changed = changed +1
|
changed = changed +1
|
||||||
lines.append( trimmed )
|
lines.append( trimmed )
|
Loading…
Reference in New Issue