mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-16 13:04:30 +02:00
global-functions: $SymbolForNotification: properly append space to alt text
This commit is contained in:
parent
81a86ee043
commit
4e1d54d733
1 changed files with 3 additions and 2 deletions
|
@ -1084,7 +1084,7 @@
|
||||||
:for I from=($ExpectedConfigVersionBefore + 1) to=$ExpectedConfigVersion do={
|
:for I from=($ExpectedConfigVersionBefore + 1) to=$ExpectedConfigVersion do={
|
||||||
:local Change ($GlobalConfigChanges->[ :tostr $I ]);
|
:local Change ($GlobalConfigChanges->[ :tostr $I ]);
|
||||||
:set NotificationMessage ($NotificationMessage . "\n " . \
|
:set NotificationMessage ($NotificationMessage . "\n " . \
|
||||||
[ $SymbolForNotification "pushpin" "* " ] . $Change);
|
[ $SymbolForNotification "pushpin" "*" ] . $Change);
|
||||||
$LogPrintExit2 info $0 ("Change " . $I . ": " . $Change) false;
|
$LogPrintExit2 info $0 ("Change " . $I . ": " . $Change) false;
|
||||||
}
|
}
|
||||||
} else={
|
} else={
|
||||||
|
@ -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={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue