Erk. That's how HPricot itself parses it.
Silly Hpricot.
html.gsub! /<(\w+)(.*?) \/>/, '<\1 \2></\1 \2>'
before parsing does the trick - but ew.
I shall have to assault _why with an onion.
I shut up now.
On Sep 21, 3:50 pm, jbc <[EMAIL PROTECTED]> wrote:
> Sorry to bother you all again, but...
>
> >> puts Haml::Engine.new(Haml::HTML.new("<p />a<p />b<p />c").render).render
>
> <p>
> a
> <p>
> b
> <p>
> c
> </p>
> </p>
> </p>
>
> Which is playing hob with trying to import a bunch of html pages... is
> there a workaround?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---