[empathy] check-whitespace.sh: check trailing tabs



commit aa9603b62dd1893eb3fdcd357397ba20c733da43
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Jun 24 11:25:52 2009 +0100

    check-whitespace.sh: check trailing tabs

 tools/check-whitespace.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tools/check-whitespace.sh b/tools/check-whitespace.sh
index 84356f2..489322f 100644
--- a/tools/check-whitespace.sh
+++ b/tools/check-whitespace.sh
@@ -8,6 +8,12 @@ then
   fail=1
 fi
 
+if grep -n '	$' "$@"
+then
+  echo "^^^ The above files contain unwanted trailing tabs"
+  fail=1
+fi
+
 # TODO: enable tab checking once all Empathy switched to TP coding style
 #if grep -n '	' "$@"
 #then



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]