aboutsummaryrefslogtreecommitdiffstats
path: root/mod/inspectvar.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-07-16 14:19:17 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-07-16 14:19:17 +0200
commit380b3b3137710eee28ca1a1b7362ae6d5b99c784 (patch)
tree43e3097c8a439a51c348cecd3eae8a66680d766a /mod/inspectvar.rsc
parentf09fa83105ea40876e7103a118b3d6d57098cf0c (diff)
parent6fbafe76ba27e35d1f3067430ba78cedfa85eb19 (diff)
Merge branch 'line-breaks' into nextrouteros-7.14-1
Diffstat (limited to 'mod/inspectvar.rsc')
-rw-r--r--mod/inspectvar.rsc5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/inspectvar.rsc b/mod/inspectvar.rsc
index 5adca0a..73205b2 100644
--- a/mod/inspectvar.rsc
+++ b/mod/inspectvar.rsc
@@ -3,7 +3,7 @@
# Copyright (c) 2020-2024 Christian Hesse <mail@eworm.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
-# requires RouterOS, version=7.13
+# requires RouterOS, version=7.14
#
# inspect variables
# https://git.eworm.de/cgit/routeros-scripts/about/doc/mod/inspectvar.md
@@ -14,9 +14,8 @@
# inspect variable and print on terminal
:set InspectVar do={
:global InspectVarReturn;
- :global PrettyPrint;
- $PrettyPrint [ $InspectVarReturn $1 ];
+ :put [ :tocrlf [ $InspectVarReturn $1 ] ];
}
# inspect variable and return formatted string