aboutsummaryrefslogtreecommitdiff
path: root/lib/waev_web/templates/exports/show.html.eex
diff options
context:
space:
mode:
authorGuillermo Ramos2020-02-12 09:55:11 +0100
committerGuillermo Ramos2020-02-12 09:55:11 +0100
commit644754f48cb89743624b7bae4cf6f1992bb58305 (patch)
tree768434096dd0d20363af8b3f442f2bd9a5629db9 /lib/waev_web/templates/exports/show.html.eex
parent6ce840b8d9155170b54277c83b1363d4eb42ab34 (diff)
downloadwaev-644754f48cb89743624b7bae4cf6f1992bb58305.tar.gz
Preserve newlines
Diffstat (limited to 'lib/waev_web/templates/exports/show.html.eex')
-rw-r--r--lib/waev_web/templates/exports/show.html.eex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/waev_web/templates/exports/show.html.eex b/lib/waev_web/templates/exports/show.html.eex
index 15a1360..052ced8 100644
--- a/lib/waev_web/templates/exports/show.html.eex
+++ b/lib/waev_web/templates/exports/show.html.eex
@@ -26,7 +26,7 @@
<% _ -> %>
<% end %>
- <div><%= highlight_urls(message.text) %></div>
+ <div><%= message.text |> highlight_urls() |> nl_to_br() %></div>
<div class="message-date">
<%= message.date %>
</div>