mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-06-20 17:15:48 +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 Level (0 + [ :tonum $2 ]);
|
||||
|
||||
:global CharacterReplace;
|
||||
:global IfThenElse;
|
||||
:global InspectVarReturn;
|
||||
|
||||
|
@ -52,6 +53,7 @@
|
|||
:if ($TypeOf = "str") do={
|
||||
:set $Return ($Return . "\n" . \
|
||||
[ $IndentReturn "len" $Len $Level ]);
|
||||
:set Input [ $CharacterReplace [ $CharacterReplace $Input ("\r") "" ] ("\n") " " ];
|
||||
}
|
||||
:if ($TypeOf != "nothing") do={
|
||||
:set $Return ($Return . "\n" . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue