comments have all sorts of empty lines removed now

This commit is contained in:
jomo
2014-02-01 18:48:02 +01:00
parent 60afa75b3f
commit 8b7e573b73

View File

@@ -4,5 +4,5 @@
<div class="editlink"><%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c) %></div>
<% end %>
</span>
<div class="comment-content"><%= h(c.content).gsub(/[\r\n]{3,}/, "\n\n").gsub("\n", "<br>").html_safe %></div>
<div class="comment-content"><%= h(c.content).gsub(/(\s*?[\r\n]){3,}/, "\n\n").gsub("\n", "<br>").html_safe %></div>
</div>