awesome-print / awesome_print

Pretty print your Ruby objects with style -- in full color and with proper indentation
http://github.com/michaeldv/awesome_print
MIT License
4.07k stars 454 forks source link

Left align hash keys? #308

Closed jfelchner closed 7 years ago

jfelchner commented 7 years ago

One of the things that has constantly bugged me about awesome_print (but it's still awesome!) is the fact that the hash keys are right aligned. It makes it extremely difficult to get a sense of nesting.

I like that the => are aligned, but I'd love a way to left-align the keys.

Possible?

Pysis868 commented 7 years ago

This may help you, and any one else that finds this issue: Issue #83 - Some hashes are incorrect printed

michaeldv commented on Sep 19, 2013 That's default behavior. If you would like hash keys to be left-aligned use :indent => -n (negative value).