StoryCacher: keep converting 3 newlines to 2

This commit is contained in:
joshua stein 2014-03-17 23:35:30 -05:00
parent 00eda60fdc
commit 33f72fc634

View file

@ -27,7 +27,9 @@ class StoryCacher
if res.present?
j = JSON.parse(res)
return j["text"]
while j["text"].match("\n\n\n")
j["text"].gsub!("\n\n\n", "\n\n")
end
end
rescue => e