I am totally unable to reproduce your result. Using the same RHTML (with 
a few tweaks to make it not dependent on nonexisting helpers), I get 
everything properly nested and the textarea with proper whitespace. Are 
you sure you're using the latest version of trunk?

- Nathan

Jeff wrote:
> Nathan,
>
> Thanks much.  Using the tilde in my haml template made my newline
> problem go away.  The following rhtml causes the form to end early and
> the text in the textarea gets the extra whitespace that haml produces
> w/o a tilde.
>
> -- Jeff
>
> <div class="vert">
>   <% form_for(:post, @post, :url => site_posts_path, :html =>
> @html_form_attributes) do |f| %>
>     <p>
>         <label for="post_post_type"> type</label>
>         <%= f.select :post_type, post_types %>
>     </p>
>     <p>
>       <label for="post_title"> title</label>
>       <%= f.text_field :title %>
>     </p>
>     <div id="vary" "style" = 'margin:0; padding:0'>
>       <p>
>         <label for='post_content'> content</label>
>         <%# f.text_area :content, :cols => 50, :rows => 12 %>
>         <textarea cols="50" id="post_content" name="post[content]"
> rows="12"><%= @post.content %></textarea>
>       </p>
>     </div>
>     <p>
>       <label for="post_publish_on"> publish on</label>
>       <%= f.date_select :publish_on %>
>       <%= f.hidden_field :id %>
>     </p>
>     <p id="submit">
>       <%= "#{submit_tag 'save'} &nbsp;&nbsp; #{link_to 'cancel',
> site_posts_path}" %>
>     </p>
>   <% end %>
> </div>

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