Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorMartin Hořeňovský2017-01-26 23:13:12 +0100
committerMartin Hořeňovský2017-01-26 23:13:12 +0100
commitc390c4cb9f9ae384451a5b8cda08aebf34407207 (patch)
tree79cb91867deabac9974094a6b2323ea8b8f2a2f4 /scripts
parent60a9ac7e65a57d82a92eebb7c8c6c1111a75897e (diff)
downloadcatch3-c390c4cb9f9ae384451a5b8cda08aebf34407207.tar.gz
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
Diffstat (limited to 'scripts')
-rw-r--r--scripts/fixWhitespace.py (renamed from scripts/fixTrailingWhitespace.py)1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/fixTrailingWhitespace.py b/scripts/fixWhitespace.py
index 6d8391bd..6f37c539 100644
--- a/scripts/fixTrailingWhitespace.py
+++ b/scripts/fixWhitespace.py
@@ -24,6 +24,7 @@ def fixFile( path ):
changed = 0
for line in f:
trimmed = line.rstrip() + "\n"
+ trimmed = trimmed.replace('\t', ' ')
if trimmed != line:
changed = changed +1
lines.append( trimmed )