From 8e8ac505cad2673e56fc79720a7f21d4f1fd1635 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 13 Jun 2016 20:26:21 +1000 Subject: [PATCH] Fix spacing on windows --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index ba8cd8eb..82fb7b37 100755 --- a/neofetch +++ b/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 }