Commit ac9c0a80 authored by Dylan Araps's avatar Dylan Araps

Fix whitespace on Windows

parent 8e8ac505
...@@ -2799,12 +2799,9 @@ getlinebreak () { ...@@ -2799,12 +2799,9 @@ getlinebreak () {
# #
# The 'set -f/+f' is here so that 'echo' doesn't cause any expansion # The 'set -f/+f' is here so that 'echo' doesn't cause any expansion
# of special characters. # of special characters.
#
# The whitespace trim doesn't work with multiline strings so we use
# '${1//[[:space:]]/ }' to remove newlines beofre we trim the whitespace.
trim() { trim() {
set -f set -f
builtin echo -E ${1//$'\n'/ } builtin echo -En $1
set +f set +f
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment