From 4f39ab90bb6ce7a4262b4eeabdfb8864f4e68a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=BCster?= Date: Wed, 23 Sep 2020 14:31:07 +0200 Subject: [PATCH] tools list fix unwanted pretty-print of json output --- tools/cli/commands-packages.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/cli/commands-packages.js b/tools/cli/commands-packages.js index 5074bc3e29..4377631661 100644 --- a/tools/cli/commands-packages.js +++ b/tools/cli/commands-packages.js @@ -1314,7 +1314,10 @@ main.registerCommand({ }); if (showJson) { - Console.info(JSON.stringify(jsonOut)) + // we can't use Console here, because it pretty prints the output with + // a wrap at 80 chars per line, which causes the json to break if details + // options is active and the package descriptions exceed the limit + console.info(JSON.stringify(jsonOut)); } return 0;