diff app/views/tweets/_tweet.html.erb @ 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 585952f98978
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>