From: Kent Dahl Date: 2001-09-11T21:34:48+09:00 Subject: [ruby-talk:21132] Re: html-parser fails at images with given height Kent Dahl wrote: > Change line 412 in html-parser.rb to: > height = Integer(value.gsub!(/\"|\'/, "") ) > for a quick'n'dirty fix. While that may solve your specific problem, I just realized that its wierd that the value string isn't stripped of its double quotes per default for height and width, while single quotes seem to be accounted for... Anyway, even with that fix, it would die on strings as 50%, which should also be valid. In the end, I think you're safer going to a rather less helpful version of the line as such: height = value If you're more comfortable with regexp than me, then maybe you can figure out the problem with the Attrfind regexp in sgml-parser, cause I'm stumped. HTH somewhat :-P -- <[ 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. "/