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.08k stars 454 forks source link

newline character is escaped #197

Open ivar opened 9 years ago

ivar commented 9 years ago

I'm not sure if this is a bug or a feature but either way I'm hoping for a fix / workaround. The newline character in ruby (e.g.: "\n") is escaped when output via awesome_print. Should this be the default behaviour? Is there a way to a actually get the unescaped newline character to appear ?

michaeldv commented 9 years ago

Yes, this default behavior 100% consistent with "\n".inspect