mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-06-21 01:25:52 +02:00
mod/inspectvar: remove CR, replace LF
This commit is contained in:
parent
187735f35f
commit
36f155ce62
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
||||||
:local Input $1;
|
:local Input $1;
|
||||||
:local Level (0 + [ :tonum $2 ]);
|
:local Level (0 + [ :tonum $2 ]);
|
||||||
|
|
||||||
|
:global CharacterReplace;
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
:global InspectVarReturn;
|
:global InspectVarReturn;
|
||||||
|
|
||||||
|
@ -52,6 +53,7 @@
|
||||||
:if ($TypeOf = "str") do={
|
:if ($TypeOf = "str") do={
|
||||||
:set $Return ($Return . "\n" . \
|
:set $Return ($Return . "\n" . \
|
||||||
[ $IndentReturn "len" $Len $Level ]);
|
[ $IndentReturn "len" $Len $Level ]);
|
||||||
|
:set Input [ $CharacterReplace [ $CharacterReplace $Input ("\r") "" ] ("\n") " " ];
|
||||||
}
|
}
|
||||||
:if ($TypeOf != "nothing") do={
|
:if ($TypeOf != "nothing") do={
|
||||||
:set $Return ($Return . "\n" . \
|
:set $Return ($Return . "\n" . \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue