1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

mod/inspectvar: use $PrettyPrint

This commit is contained in:
Christian Hesse
2022-07-05 12:40:07 +02:00
parent eda75f0bbc
commit 150feac400

View File

@@ -8,10 +8,10 @@
# inspect variable and print on terminal
:set InspectVar do={
:global CharacterReplace;
:global InspectVarReturn;
:global PrettyPrint;
:put [ $CharacterReplace [ $InspectVarReturn $1 ] ("\n") ("\n\r") ];
$PrettyPrint [ $InspectVarReturn $1 ];
}
# inspect variable and return formatted string