1.7.0 but gem hpricot was not up to date.
Sorry
Mike
On Jul 15, 12:45 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> That file works fine for me.
>
> $ html2haml --stdout test.html
> !!!
> %html{"xmlns"=>"http://www.w3.org/1999/xhtml"}
> %head
> %meta{"content"=>"text/html;\ncharset=iso-8859-1",
> "http-equiv"=>"Content-Type"}/
> %title
> Untitled Document
> %body
> %p
> hi
> %p
> there
>
> What version are you running?
>
> - Nathan
>
>
>
> Michael O'Malley wrote:
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
> >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > <html xmlns="http://www.w3.org/1999/xhtml">
> > <head>
> > <meta http-equiv="Content-Type" content="text/html;
> > charset=iso-8859-1" />
> > <title>Untitled Document</title>
> > </head>
>
> > <body>
> > <p> hi </p>
> > </br>
> > <p> there </p>
> > </body>
> > </html>
>
> > The main reason that I want html2haml to continue in the face of error
> > is that I am converting from Cold Fusion to Rails/HAML and I want to
> > use html2haml for a first pass on the Cold Fusion files. Actually,
> > html2haml is a great learning tool for HAML.
>
> > Mike O'Malley
>
> > On Jul 15, 12:42 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
>
> >> What's the smallest input file you can find that causes this error?
>
> >> Michael O'Malley wrote:
>
> >>> I get an error in html2haml when I have a not quite legitimate html
> >>> file (e.g., </br>).
> >>> The error is in html.rb line 56 in parse_text: undefined method
> >>> 'strip!' for nil:NilClass.- Hide quoted text -
>
> >> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---