diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index 0c43c66..fa2b9fc 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -4,5 +4,5 @@ <% end %> -
<%= h(c.content).gsub(/[\r\n]{3,}/, "\n\n").gsub("\n", "
").html_safe %>
+
<%= h(c.content).gsub(/(\s*?[\r\n]){3,}/, "\n\n").gsub("\n", "
").html_safe %>
\ No newline at end of file