Skip to content
New issue

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 removes newlines #1465

Open
adeck opened this issue Aug 18, 2017 · 1 comment
Open

--indent 0 removes newlines #1465

adeck opened this issue Aug 18, 2017 · 1 comment
Labels

Comments

@adeck
Copy link

adeck commented Aug 18, 2017

I initially thought it would be easy to get output to look like this guy wants his to look:
#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.

@markhu
Copy link

markhu commented Sep 8, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants