preserve diff leading whitespaces when displayin them in the test runner
This commit is contained in:
parent
abac6a9436
commit
39762f0cf0
2
test/run
2
test/run
|
@ -148,7 +148,7 @@ colorize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
show_diff() {
|
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)
|
first_character=$(echo "$line" | cut -b 1)
|
||||||
case $first_character in
|
case $first_character in
|
||||||
+) color=green ;;
|
+) color=green ;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user