Fix spacing on windows
This commit is contained in:
parent
c3ddcaa331
commit
8e8ac505ca
1 changed files with 2 additions and 1 deletions
3
neofetch
3
neofetch
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue