On 9/21/07, jbc <[EMAIL PROTECTED]> wrote: > > > Erk. That's how HPricot itself parses it.
Hpricot parses is that way because you're telling it that it is HTML, which it's clearly not. First of all, there are no self-closing tags in HTML; second, a paragraph is not an empty element. So how do you tell Hpricot you're using XHTML? Like this: doc = Hpricot::XML "<p />a<p />b<p />c" Then it gets parsed correctly. So how do you expose this to Haml::HTML and html2haml tool? I would suggest writing a patch that adds xhml this as an option. And please, don't arm yourself with onions if the tool you were using was just doing the right thing. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
