Yes, there is. If you're using trunk, wrap the render call with a 
"find_and_preserve" helper. Otherwise, use a "~" character (which is 
deprecated in trunk... hence the different method) instead of "=". That 
will convert all newlines within whitespace-sensitive tags like <pre> to 
HTML newline characters, which will not only make the layout's 
indentation consistent, but will cause Haml not to auto-indent it.

- Nathan

weepy wrote:
> I'm doing the following :
>
> %h1#logo
>   = render :partial => "layouts/logo"
>
> where logo.rhtml is
>
> <pre>
> my ascii art
> </pre>
>
> which produces :
>
>       <h1 id='logo'>
>         <pre>
>          my ascii art
>         </pre>
>       </h1>
>
> the obvious problem is the pre tag is indented creating an unwanted
> large left-margin of whitespace
>
> any way round this ?
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to