mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
Fix spacing on windows
This commit is contained in:
3
neofetch
3
neofetch
@@ -2545,6 +2545,7 @@ stdout () {
|
|||||||
*)
|
*)
|
||||||
"get$func" 2>/dev/null
|
"get$func" 2>/dev/null
|
||||||
eval output="\$$func"
|
eval output="\$$func"
|
||||||
|
output="$(trim "$output")"
|
||||||
stdout+="${output}${stdout_separator}"
|
stdout+="${output}${stdout_separator}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -2803,7 +2804,7 @@ getlinebreak () {
|
|||||||
# '${1//[[:space:]]/ }' to remove newlines beofre we trim the whitespace.
|
# '${1//[[:space:]]/ }' to remove newlines beofre we trim the whitespace.
|
||||||
trim() {
|
trim() {
|
||||||
set -f
|
set -f
|
||||||
builtin echo -E ${1//[[:space:]]/ }
|
builtin echo -E ${1//$'\n'/ }
|
||||||
set +f
|
set +f
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user