From 24c92840c3ec905df45c673c8eb53c932ec1293e Mon Sep 17 00:00:00 2001 From: joshua stein Date: Wed, 12 Mar 2014 17:16:21 -0500 Subject: [PATCH] diffbot appears to be formatting results properly now --- extras/story_cacher.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extras/story_cacher.rb b/extras/story_cacher.rb index 844ca0f..5682d83 100644 --- a/extras/story_cacher.rb +++ b/extras/story_cacher.rb @@ -27,8 +27,7 @@ class StoryCacher if res.present? j = JSON.parse(res) - # turn newlines into double newlines, so they become paragraphs - return j["text"].gsub("\n", "\n\n") + return j["text"] end rescue => e