mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-16 21:14:31 +02:00
global-functions: $FormatLine: use $CharacterMultiply
This commit is contained in:
parent
5e2e65b252
commit
1bb2871e0b
1 changed files with 3 additions and 1 deletions
|
@ -377,12 +377,14 @@
|
|||
:local Key [ :tostr $1 ];
|
||||
:local Value [ :tostr $2 ];
|
||||
:local Indent [ :tonum $3 ];
|
||||
:local Spaces " ";
|
||||
:local Spaces;
|
||||
:local Return "";
|
||||
|
||||
:global CharacterMultiply;
|
||||
:global EitherOr;
|
||||
|
||||
:set Indent [ $EitherOr $Indent 16 ];
|
||||
:local Spaces [ $CharacterMultiply " " $Indent ];
|
||||
|
||||
:if ([ :len $Key ] > 0) do={ :set Return ($Key . ":"); }
|
||||
:if ([ :len $Key ] > ($Indent - 2)) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue