From ac9c0a80c74b7a528e6269893b1af6603f729edd Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 13 Jun 2016 20:28:31 +1000 Subject: [PATCH] Fix whitespace on Windows --- neofetch | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 82fb7b37..e5c48cfb 100755 --- a/neofetch +++ b/neofetch @@ -2799,12 +2799,9 @@ getlinebreak () { # # The 'set -f/+f' is here so that 'echo' doesn't cause any expansion # 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() { set -f - builtin echo -E ${1//$'\n'/ } + builtin echo -En $1 set +f }