I'm not entirely sure, but it's likely that this is because
in_place_editor and/or business_plan.answer don't actually produce <pre>
or <textarea> tags (at least at the time they're created).
#find_and_preserve and its alias ~ only preserve newlines within
whitespace-sensitive tags. If you need newline preservation everywhere,
use the #preserve helper instead.
pimpmaster wrote:
> My text is displaying properly, but when I click on it and a textarea
> pops up, there is odd indentation going on .. nothing like what I
> saved. I tried the venerable tilde trick, but no avail.
>
> Here is the source:
>
> %span.in_place_editor_field{:id=>"edit_#{business_plan.id}"}
> ~ business_plan.answer
> ~ in_place_editor "edit_#{business_plan.id}",
> {:url=>{:controller=>'business_plans',:action=>'update',:id=>business_plan.id,
> :field
> => 'answer', :wants_render =>
> false,:escape=>false},:rows=>10,:options=>"{method:'put'}"}
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---