comparison 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
comparison
equal deleted inserted replaced
64:a20bbd1e2dc1 65:eecb35eac2f3
11 <%= tweet.user.name -%> 11 <%= tweet.user.name -%>
12 <% end %> 12 <% end %>
13 13
14 / 14 /
15 15
16 <%= auto_link(tweet.text).html_safe %> 16 <%= auto_link(tweet.text).gsub("\n", "<br>").html_safe %>
17 </p> 17 </p>
18 18
19 <p> 19 <p>
20 <% tweet.media.each do |media| %> 20 <% tweet.media.each do |media| %>
21 <% if media.is_a? Twitter::Media::Photo %> 21 <% if media.is_a? Twitter::Media::Photo %>