mod/inspectvar: remove CR, replace LF

This commit is contained in:
Christian Hesse 2025-05-08 11:15:21 +02:00
parent 187735f35f
commit 36f155ce62

View file

@ -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" . \