Closed
Description
Describe the bug
jq --indent 0
behaves like jq --compact-output
rather than only omit the indentations.
To Reproduce
jq --indent 0 -n "[1,2]"
produces
[1,2]
Expected behavior
I would expect jq --indent 0
to keep lines separated and only avoid adding the indentations.
For example, jq --indent 0 -n "[1,2]"
should produce
[
1,
2
]
In other words, jq --indent 0 ...
should be equivalent to jq ... | sed 's/^\s*//'
on Linux.
Environment:
- OS and Version: Windows, Linux - WSL
- jq version 1.6