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

Bad indentation on large nested hashes #362

Open raldred opened 5 years ago

raldred commented 5 years ago

Running into some strange indentation when using ap with large nested hashes. The indentation ends up all over the place, for example: ap I18n::JS.filtered_translations on a RoR application

Here's a snippet

                             :time => {
                 :am => "am",
            :formats => {
                :default => "%a, %d %b %Y %H:%M:%S %z",
                   :long => "%B %d, %Y %H:%M",
                  :short => "%d %b %H:%M"
            },
                 :pm => "pm"
        },