fastreader 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fastreader might be problematic. Click here for more details.

@@ -19,6 +19,10 @@ class Autodiscovery
19
19
  return x[:href]
20
20
  end
21
21
  end
22
+ if x=@doc.at("head link[@type=text/xml]")
23
+ puts "Found feed link #{x}"
24
+ return x[:href]
25
+ end
22
26
  return nil
23
27
  end
24
28
  end
@@ -103,7 +103,7 @@ class Display
103
103
  # in paragarph tags, so it can be processed with the html paragraph rule
104
104
  # below.
105
105
  if html =~ /\n/ && html !~ /<[^>]+>/ && html !~ /<\/[^>]+>/
106
- html = html.split("\n\n").collect {|x| "<p>#{x}</p>"}.join("\n")
106
+ html = html.split("\n\n").collect {|x| "<p>#{x.strip}</p>"}.join("\n")
107
107
  end
108
108
 
109
109
  html, *links = links_to_footnotes(html)
@@ -33,7 +33,7 @@ include FileUtils
33
33
  include ActionView::Helpers::DateHelper
34
34
 
35
35
  class Fastreader
36
- VERSION = '1.0.3'
36
+ VERSION = '1.0.4'
37
37
 
38
38
  attr_accessor :database_path
39
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastreader
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Choi