mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-31 00:04:51 +02:00
global-functions: $AlignRight: use $CharacterMultiply
This commit is contained in:
parent
8f24b4c490
commit
5e2e65b252
1 changed files with 2 additions and 1 deletions
|
@ -81,10 +81,11 @@
|
|||
:local Input [ :tostr $1 ];
|
||||
:local Len [ :tonum $2 ];
|
||||
|
||||
:global CharacterMultiply;
|
||||
:global EitherOr;
|
||||
|
||||
:local Spaces " ";
|
||||
:set Len [ $EitherOr $Len 8 ];
|
||||
:local Spaces [ $CharacterMultiply " " $Len ];
|
||||
|
||||
:return ([ :pick $Spaces 0 ($Len - [ :len $Input ]) ] . $Input);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue