We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--indent 0
Describe the bug
jq --indent 0 behaves like jq --compact-output rather than only omit the indentations.
jq --indent 0
jq --compact-output
To Reproduce
jq --indent 0 -n "[1,2]" produces
jq --indent 0 -n "[1,2]"
[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.
jq --indent 0 ...
jq ... | sed 's/^\s*//'
Environment:
The text was updated successfully, but these errors were encountered:
Duplication of #1465.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
jq --indent 0
behaves likejq --compact-output
rather than only omit the indentations.To Reproduce
jq --indent 0 -n "[1,2]"
producesExpected 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 produceIn other words,
jq --indent 0 ...
should be equivalent tojq ... | sed 's/^\s*//'
on Linux.Environment:
The text was updated successfully, but these errors were encountered: