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.
- data/lib/autodiscovery.rb +4 -0
- data/lib/display.rb +1 -1
- data/lib/fastreader.rb +1 -1
- metadata +1 -1
data/lib/autodiscovery.rb
CHANGED
data/lib/display.rb
CHANGED
@@ -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)
|
data/lib/fastreader.rb
CHANGED