cantino / ruby-readability

Port of arc90's readability project to Ruby
Apache License 2.0
925 stars 170 forks source link

Ruby 1.9.1 'case' syntax #1

Closed tobym closed 13 years ago

ghost commented 13 years ago

What was the bad encoding issue?

tobym commented 13 years ago

When I open irb (ruby 1.9.1-p378 on a macbook pro), and require lib/readability.rb, I got this error:

/Users/toby/work/nlp/ruby-readability/lib/readability.rb:280: invalid multibyte char (US-ASCII) /Users/toby/work/nlp/ruby-readability/lib/readability.rb:280: invalid multibyte char (US-ASCII) /Users/toby/work/nlp/ruby-readability/lib/readability.rb:280: syntax error, unexpected $end, expecting ')' node.to_html.gsub(/[\r\n\f]+/, "\n" ).gsub(/[\t  ]+/, " ")

Seems like there is an hidden character that ruby 1.9.1 chokes on.

ghost commented 13 years ago

Eek, yea, no good. I just pulled your patch. Thanks!