mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $SymbolForNotification: properly append space to alt text
This commit is contained in:
@@ -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={
|
||||
|
Reference in New Issue
Block a user