Closed comamitc closed 8 years ago
This can be fixed by setting "right-margin". This screams that we need "settings" in the UI of pretty-print.net.
By setting it to 40 I got this:
{:users
[{:name "Dan", :age 23}
{:name "Sam", :gender :female}],
:aliases
{"Dan" ["Dante" "Daniel"],
"Sam" ["Samantha" "Samoth"]}}
Open #20 to track enhancement progress.
That later one isn't significantly better. The problem seems to me to be that it doesn't have a concept of map literal elements being alternating keys and values and handling that differently than just if it was a list of stuff.
I agree with your assessment. While adding the formatter's settings into the UI of pretty-print might help this a little (arguably so) the underlying problem seems to be with the clojure.pprint
library in how it deals with these objects. I will open an issue there for this and see if we can get some traction.
This should be solved in #34
{:users [{:name "Dan", :age 23}
{:name "Sam", :gender :female}]
:aliases {"Dan" ["Dante" "Daniel"]
"Sam" ["Samantha", "Samoth"]}}
Based on cljfmt
.
Closing this based on #34 & #44.
Gets output as