global-functions: $SymbolForNotification: properly append space to alt text

This commit is contained in:
Christian Hesse 2023-11-29 13:20:15 +01:00
parent 81a86ee043
commit 4e1d54d733

View file

@ -1299,9 +1299,10 @@
:set SymbolForNotification do={ :set SymbolForNotification do={
:global NotificationsWithSymbols; :global NotificationsWithSymbols;
:global SymbolByUnicodeName; :global SymbolByUnicodeName;
:global IfThenElse;
:if ($NotificationsWithSymbols != true) do={ :if ($NotificationsWithSymbols != true) do={
:return [ :tostr $2 ]; :return [ $IfThenElse ([ :len $2 ] > 0) ([ :tostr $2 ] . " ") "" ];
} }
:local Return ""; :local Return "";
:foreach Symbol in=[ :toarray $1 ] do={ :foreach Symbol in=[ :toarray $1 ] do={