From 5abac16a5492f33b459d395099e90ae310b07d3a Mon Sep 17 00:00:00 2001 From: Coleman Date: Thu, 6 Nov 2008 18:32:14 -0600 Subject: [PATCH] support newlines in comments --- app/views/pages/_comments.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/pages/_comments.html.erb b/app/views/pages/_comments.html.erb index 63f9a53..b4e2e09 100644 --- a/app/views/pages/_comments.html.erb +++ b/app/views/pages/_comments.html.erb @@ -10,7 +10,7 @@ said <%= time_lost_in_words comment.page.created_at, comment.created_at %> later:
- <%= h(comment.comment) %> + <%= nl2br(h(comment.comment)) %>
<% end -%>