"%pre~ text" (or "%pre= text" in Haml >= 2.0) should work, if text is 
some Ruby code that returns the text. If it's literal text, then

  %pre
    :preserve
      text

should work.

Matt Harrison wrote:
> I'm trying to output some text (an installation log) and I want it to be
> displayed as if it was inside a <pre> section.
>
> I've tried to use ":preserve" but it just displays normally with no
> <br>'s in there at all.
>
> How can I get the text to behave as if it was in a <pre> tag but without
> the <pre>? I've tried using <pre> but it causes some problems with the
> indentation of second lines onwards, probably due to haml's indentation.
>
> Any ideas on this?
>
> Thanks
>
> Matt
>
> >
>
>   


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