diff --git a/tool/lib/JSONLib.jq b/tool/lib/JSONLib.jq index 5057f9c..6be860b 100644 --- a/tool/lib/JSONLib.jq +++ b/tool/lib/JSONLib.jq @@ -46,8 +46,8 @@ def colourEscapes: ); def _encodeJSONValuePlainPretty($indent; $currentDepth): - [range($indent * $currentDepth) | " "] | join("") as $currentIndentDepthIndent | - [range($indent * ($currentDepth + 1)) | " "] | join("") as $nextDepthIndent | + ([range($indent * $currentDepth) | " "] | join("")) as $currentIndentDepthIndent | + ([range($indent * ($currentDepth + 1)) | " "] | join("")) as $nextDepthIndent | "\n" as $currentIndentDepthNewline | " " as $currentIndentDepthSpace |