Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ruby 1.9 compatibility fix

  • Loading branch information...
commit 0cf911bedacef2981ff3b17db2872d6c5ba07c1a 1 parent e1fbfdc
@lnussbaum lnussbaum authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/feedparser/html2text-parser.rb
View
6 lib/feedparser/html2text-parser.rb
@@ -18,9 +18,9 @@ def initialize(verbose = false)
end
def next_img_index
- n = @img_index[0] + 1
- @img_index = " "
- @img_index[0] = n
+ n = @img_index[0].ord
+ n += 1
+ @img_index = n.chr
return @img_index
end
Please sign in to comment.
Something went wrong with that request. Please try again.