generalize to translating all whitespace, not one character (the space) #30

Merged
merged 1 commit into from Nov 15, 2011
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
View
2 spark
@@ -147,7 +147,7 @@ else
fi
# Trim spaces to allow input like '1, 2, 3'
-data=$(echo $data | tr -s ' ' ',')
+data=$(echo $data | tr -s '[:space:]' ',')
setup_array $data
print_ticks $data