From 597277dbe75bb9a87852d46c64b026b189c3528b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 5 Jul 2022 12:42:21 +0200 Subject: mod/ipcalc: use $PrettyPrint --- mod/ipcalc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mod/ipcalc b/mod/ipcalc index ed83d3c..14bb1ea 100644 --- a/mod/ipcalc +++ b/mod/ipcalc @@ -11,15 +11,16 @@ :local Input [ :tostr $1 ]; :global IPCalcReturn; + :global PrettyPrint; :local Values [ $IPCalcReturn $1 ]; - :put ( \ - "Address: " . $Values->"address" . "\n\r" . \ - "Netmask: " . $Values->"netmask" . "\n\r" . \ - "Network: " . $Values->"network" . "\n\r" . \ - "HostMin: " . $Values->"hostmin" . "\n\r" . \ - "HostMax: " . $Values->"hostmax" . "\n\r" . \ + $PrettyPrint ( \ + "Address: " . $Values->"address" . "\n" . \ + "Netmask: " . $Values->"netmask" . "\n" . \ + "Network: " . $Values->"network" . "\n" . \ + "HostMin: " . $Values->"hostmin" . "\n" . \ + "HostMax: " . $Values->"hostmax" . "\n" . \ "Broadcast: " . $Values->"broadcast"); } -- cgit v1.2.3-54-g00ecf