From: Kent Dahl Date: 2001-09-11T21:34:44+09:00 Subject: [ruby-talk:21129] Re: html-parser fails at images with given height Roland Jesse wrote: > /usr/local/lib/ruby/site_ruby/1.6/html-parser.rb:412:in `Integer': invalid value for Integer: ""42"" (ArgumentError) > from /usr/local/lib/ruby/site_ruby/1.6/html-parser.rb:412:in `do_img' Looks like it doesn't expect the wrapparound quotes... Shouldn't be too hard to fix with a regexp. Change line 412 in html-parser.rb to: height = Integer(value.gsub!(/\"|\'/, "") ) for a quick'n'dirty fix. You might want to do the same with width :-) -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.�k.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/