aboutsummaryrefslogtreecommitdiffstats
path: root/mod/inspectvar.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-07-11 23:12:50 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-07-16 13:50:22 +0200
commit2b758b83fd47ca765dd8c5ed15ff3d001d60a6fc (patch)
tree1e9d0c3ca6a806c1224186b7cb63eab5a97fe6b8 /mod/inspectvar.rsc
parent2fd0d27447b8ce6620ec3f6d68c9d5ca62bb9f02 (diff)
mod/inspectvar: use :tocrlf
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