That's very weird. Will certain textarea contents always produce the 
effect, and others not, or is it just totally random? If it's the 
former, it's probably an issue with the find_and_preserve Regex. If it's 
the latter, I'm pretty baffled. You could try just using the "preserve" 
helper, which doesn't bother to look specifically for textareas, and 
just gets rid of all the newlines.

- Nathan

Chris Abad wrote:
> I'm a little confused by this one since it appears to be inconsistent 
> (in other words, I can't figure out what's causing the issue yet).
>
> My view has code like this (inside a form):
> ~ render :inline => @rhtml
>
> and @rhtml has a value like this:
> <fieldset>
>     <%= f.text_area :content %>
> </fieldset>
>
>
> _Most_ of the time, this works just fine. However, sometimes the 
> indentation in the text area gets a little off (attaching screenshot). 
> When I look at the view source, I can see what the issue is. The 
> content within the text area has no newlines _most_ of the time. 
> However, in the areas where the indentation is off, you can see that 
> there are newlines in the source code (screenshot attached).
>
> Any ideas?
>
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
>
>
>


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