slim icon indicating copy to clipboard operation
slim copied to clipboard

Rendering <pre> tag in Slim partials within Haml

Open danuker opened this issue 8 years ago • 0 comments

When I include Slim templates in Haml ones, there are whitespaces as they were in the parent/container partial, where render is called. This means everything is altered - including <pre> tags - and adds spaces in front of each line. So, everything is indented in the <pre> tags. I don't know whether Slim, Haml, or the Rails rendering engine does it, but it would be useful if it did not do this.

danuker avatar Feb 04 '16 15:02 danuker