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

Printer should also support pretty-printed output #13

Closed
bpsm opened this issue Oct 3, 2012 · 1 comment
Closed

Printer should also support pretty-printed output #13

bpsm opened this issue Oct 3, 2012 · 1 comment
Milestone

Comments

@bpsm
Copy link
Owner

bpsm commented Oct 3, 2012

Currently Printer produces output that is all in one line:

[{:a "asdfasdfasdfasdfasdfasdf" :b 1234 :c "uoiuojoijoijmoinoihohkjhlkjhlkjhu", :d #{ … } … } … ]

This is great for communication, since it's compact and no human has to be able to read it. On the other hand, it stinks for debugging scenarios or where edn data is stored in version control where it may be subject to merges.

Printer should support the option to format output in multiple lines with some amount of indentation to indicate logical nesting. It need not be highly configurable. It need not match the output of Clojure's pprint. It must be faster than Clojure's pprint.

@bpsm
Copy link
Owner Author

bpsm commented Mar 1, 2014

Done. See:
428da65

@bpsm bpsm closed this as completed Mar 1, 2014
bpsm added a commit that referenced this issue Mar 2, 2014
* Provide a simple pretty-printer for edn data
  #13
  428da65

* LooseFormatter provides more readable, but still compact, edn printing
  #37

* recognize 'foo//' as a symbol
  #30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant