diffbot appears to be formatting results properly now
This commit is contained in:
parent
efe1353b87
commit
24c92840c3
|
@ -27,8 +27,7 @@ class StoryCacher
|
||||||
if res.present?
|
if res.present?
|
||||||
j = JSON.parse(res)
|
j = JSON.parse(res)
|
||||||
|
|
||||||
# turn newlines into double newlines, so they become paragraphs
|
return j["text"]
|
||||||
return j["text"].gsub("\n", "\n\n")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue => e
|
rescue => e
|
||||||
|
|
Loading…
Reference in a new issue