preserve diff leading whitespaces when displayin them in the test runner

This commit is contained in:
Maxime Coste 2016-05-10 09:38:47 +01:00
parent abac6a9436
commit 39762f0cf0

View File

@ -148,7 +148,7 @@ colorize() {
}
show_diff() {
diff -u $1 $2 | while read -r line; do
diff -u $1 $2 | while IFS='' read -r line; do
first_character=$(echo "$line" | cut -b 1)
case $first_character in
+) color=green ;;