-
Notifications
You must be signed in to change notification settings - Fork 60
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
improve pretty printing #141
Conversation
e78f9f3
to
2435aac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already much better not to have so many dangling opening parens. I'll fix the changelog on master
.
CHANGES.md
Outdated
@@ -41,6 +41,7 @@ | |||
- Avoid copying unnecessarily large amounts of strings when parsing (#85, #108, | |||
@Leonidas-from-XIV) | |||
- Fix `stream_to_file` (#133, @tcoopman and @gasche) | |||
- Fix pretty-printing behavior for lists/objects inside lists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should actually go into a new unreleased
section, I'll push this on master
.
1a56a79
to
e36bbfe
Compare
Don't you want to reserve wrapping (hov box) for only sequences of "atoms" (null, boolean, number, string, |
Ah, that's interesting. I didn't realize it was done this way, but it makes sense (hv box for big objects is nicer). I think it can wait but that's just my personal opinion, and if you want to make a PR it'll make @Leonidas-from-XIV happy :) |
CHANGES: *2022-06-28* ### Fixed - Fix pretty-printing behavior for lists/objects inside lists (@c-cube ocaml-community/yojson#141, @mjambon ocaml-community/yojson#142)
cf #140