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

support not adding a newline for empty hashes when pretty_generating #437

Open
fawaf opened this issue Jul 9, 2020 · 0 comments
Open

support not adding a newline for empty hashes when pretty_generating #437

fawaf opened this issue Jul 9, 2020 · 0 comments

Comments

@fawaf
Copy link

fawaf commented Jul 9, 2020

currently, pretty_generate will add a newline to the output if there is a hash or array that is empty:

{
  "blah":"bar",
  "foo": {
  },
  "baz": [
  ]
}

this is to add an optional argument to not generate that newline. e.g.

{
  "blah":"bar",
  "foo": {},
  "baz": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant