changeset 65:eecb35eac2f3

Replace `\n` with newlines Replicates what the actual client do. Of course comes with possible trollings.
author nanaya <me@myconan.net>
date Tue, 01 Dec 2015 01:27:22 +0900
parents a20bbd1e2dc1
children 1161ad2a4390
files app/views/tweets/_tweet.html.erb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/tweets/_tweet.html.erb	Tue Dec 01 01:24:34 2015 +0900
+++ b/app/views/tweets/_tweet.html.erb	Tue Dec 01 01:27:22 2015 +0900
@@ -13,7 +13,7 @@
 
     /
 
-    <%= auto_link(tweet.text).html_safe %>
+    <%= auto_link(tweet.text).gsub("\n", "<br>").html_safe %>
   </p>
 
   <p>