comamitc / pretty-print.net

http://pretty-print.net
MIT License
15 stars 4 forks source link

Long EDN not wrapping? #45

Closed shaunlebron closed 8 years ago

shaunlebron commented 8 years ago

Is there a way to format EDN data, perhaps by falling back to cljs.pprint? cljfmt doesn't seem to change this input at all:

{:foo [1 2 3 {:bar "Hello this string is one line long." :baz {:flex ["this" "vector" "all" "day" "long"] ["uh
... oh"] {:another "map here"}} :now-im-lost ["L" "O" "S" "T"]} 4 5 6]}
comamitc commented 8 years ago

Yea I noticed this earlier. I'll definitely be looking into this. cljs.pprint is definitely a good idea here.

comamitc commented 8 years ago

This prints to:

{:foo
 [1
  2
  3
  {:baz
   {:flex ["this" "vector" "all" "day" "long"]
    ["uh\n... oh"] {:another "map here"}}
   :bar "Hello this string is one line long."
   :now-im-lost ["L" "O" "S" "T"]}
  4
  5
  6]}

Using cljs.pprint.

shaunlebron commented 8 years ago

👍