diff options
author | Christian Hesse <mail@eworm.de> | 2023-11-29 13:20:15 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-11-30 13:51:57 +0100 |
commit | 4e1d54d733bb2ff551edca957d331af357e9fd5b (patch) | |
tree | 033b2fd433dd71ef5baa2dab46edc680824b99f8 /global-functions.rsc | |
parent | 81a86ee0430c0ffccfa7e8116d383341037e07da (diff) |
global-functions: $SymbolForNotification: properly append space to alt text
Diffstat (limited to 'global-functions.rsc')
-rw-r--r-- | global-functions.rsc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/global-functions.rsc b/global-functions.rsc index c356606..a569699 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -1084,7 +1084,7 @@ :for I from=($ExpectedConfigVersionBefore + 1) to=$ExpectedConfigVersion do={ :local Change ($GlobalConfigChanges->[ :tostr $I ]); :set NotificationMessage ($NotificationMessage . "\n " . \ - [ $SymbolForNotification "pushpin" "* " ] . $Change); + [ $SymbolForNotification "pushpin" "*" ] . $Change); $LogPrintExit2 info $0 ("Change " . $I . ": " . $Change) false; } } else={ @@ -1299,9 +1299,10 @@ :set SymbolForNotification do={ :global NotificationsWithSymbols; :global SymbolByUnicodeName; + :global IfThenElse; :if ($NotificationsWithSymbols != true) do={ - :return [ :tostr $2 ]; + :return [ $IfThenElse ([ :len $2 ] > 0) ([ :tostr $2 ] . " ") "" ]; } :local Return ""; :foreach Symbol in=[ :toarray $1 ] do={ |