How do I break long text lines?

951 views
Skip to first unread message

Jim

unread,
Dec 8, 2009, 9:51:22 AM12/8/09
to Haml
Such a newbie question... In a view I have a largeish chunk of text
that is one long string that will go in a paragraph tag. How can I
wrap these text lines in my editor and yet not have haml recognize
those line breaks? I have tried escaping by adding a \ at the end of
each line, and can't seem to find any reference to this in the doco.

I only want to break it up in my view file so I am not scrolling
sideways forever in my editor.

PS. LOVE haml - recently forced to use it because I took over someone
else's rails project. Never quite felt the need before and now I can't
get enough. Thanks for this elegant tool!

Jacques Crocker

unread,
Dec 8, 2009, 11:54:31 AM12/8/09
to ha...@googlegroups.com
If its just text you can just indent the content underneath the element.

%p
long text...
more long text...
etc....
> --
>
> You received this message because you are subscribed to the Google Groups "Haml" group.
> To post to this group, send email to ha...@googlegroups.com.
> To unsubscribe from this group, send email to haml+uns...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/haml?hl=en.
>
>

Jim

unread,
Dec 8, 2009, 1:45:12 PM12/8/09
to Haml
Terrific! Thanks Jacques! Jim.
Reply all
Reply to author
Forward
0 new messages