There's a special command for this: "~". If you nest a section of 
whitespace-sensitive text within a "~" command, the whitespace will be 
preserved. So, for example, you could do:

%pre
  ~
      +
    +++++
      +

- Nathan


Doug Mc wrote:
> Could someone tell me how to render this in a centered <pre> tag?
>
>   +
> +++++
>   +
>
>
> Ordinarily I'd use trailing whitespace to make all the lines the same
> length so they'd center correctly.  With trailing whitespace stripped
> off I have no control over it, and I can't figure out how to tell HAML
> to honor that whitespace.  Do I have to patch?  :(
>   

--~--~---------~--~----~------------~-------~--~----~
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