The first one is now fixed in trunk. Thanks. The second one is more 
tricky. It's hard to figure out exactly what constitutes the beginning 
of an indented block; not only is there "do", but if statements, for, 
case, all that sort of thing. I think it is possible, though; I'll work 
on it (or if you'd like you could submit a patch - that would definitely 
get it done faster).

- Nathan

Michael O'Malley wrote:
> html2haml -r foo.rhtml foo.haml turns
>
> <% form_for(:article, :url => issue_articles_path(@issue)) do |@f| %>
>   <%= render_partial('form', :locals => {:method => nil}) %>
>   <p>
>     <%= submit_tag "Create" %>
>   </p>
> <% end %>
>
> into
>
> - form_for(:article, :url =&gt; issue_articles_path(@issue)) do |@f|
> = render_partial('form', :locals =&gt; {:method =&gt; nil})
> %p
>   = submit_tag &quot;Create&quot;
> - end
>
> Am I correct that &gt; and &quote should not be inserted?  (BTW, &amp;
> becomes &amp;amp;)
>
> Also, the original indentation is correct and it would be nice if it
> could be kept.  This would require html2haml to recognize the do end
> construction.  -end would then be redundant
>
>
> >
>
>   


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