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

misleading haml example : haml indent inserted in the <pre> #322

Open MathieuDerelle opened 7 years ago

MathieuDerelle commented 7 years ago

the readme suggest to use the syntax != ap({ foo: :bar }) in haml

but the following code

!= ap({ foo: :bar })
%div
  != ap({ foo: :bar })
  %div
    != ap({ foo: :bar })

will produce image

wherease = preserve(ap({ foo: :bar })) produce the expected image