jq icon indicating copy to clipboard operation
jq copied to clipboard

--indent 0 removes newlines

Open adeck opened this issue 8 years ago • 1 comments

I initially thought it would be easy to get output to look like this guy wants his to look: https://github.com/stedolan/jq/issues/1462

However, using --indent 0 from commandline jq seems to have simply disabled prettyprinting entirely, and in addition to removing indent characters, it removes newlines as well, which is surprising and unintuitive.

adeck avatar Aug 18 '17 01:08 adeck

To elaborate, a common desired output is one field per line, with no [hierarchical] indentation. Current (alleged buggy) behavior of --indent 0 seems redundant with --compact-output --thus we either need it fixed, or to find/make another way to specify the desired output.

markhu avatar Sep 08 '20 21:09 markhu