Commit 8e8ac505 authored by Dylan Araps's avatar Dylan Araps

Fix spacing on windows

parent c3ddcaa3
......@@ -2545,6 +2545,7 @@ stdout () {
*)
"get$func" 2>/dev/null
eval output="\$$func"
output="$(trim "$output")"
stdout+="${output}${stdout_separator}"
;;
esac
......@@ -2803,7 +2804,7 @@ getlinebreak () {
# '${1//[[:space:]]/ }' to remove newlines beofre we trim the whitespace.
trim() {
set -f
builtin echo -E ${1//[[:space:]]/ }
builtin echo -E ${1//$'\n'/ }
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