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
currently, pretty_generate will add a newline to the output if there is a hash or array that is empty:
pretty_generate
{ "blah":"bar", "foo": { }, "baz": [ ] }
this is to add an optional argument to not generate that newline. e.g.
{ "blah":"bar", "foo": {}, "baz": [] }
The text was updated successfully, but these errors were encountered:
I'm thinking this should just the the default to be honest.
Sorry, something went wrong.
pretty_generate: don't apply object_nl / array_nl for empty containers
f0e0d37
Fix: ruby#437 Before: ```json { "foo": { }, "bar": [ ] } ``` After: ```json { "foo": {}, "bar": [] } ```
66a3e7d
Successfully merging a pull request may close this issue.
currently,
pretty_generate
will add a newline to the output if there is a hash or array that is empty:this is to add an optional argument to not generate that newline. e.g.
The text was updated successfully, but these errors were encountered: