Commit d5028d4947511d0dcde391bda115899b885c4ee7

Authored by Sergey Nartimov
1 parent b65f3c19
Exists in master and in 1 other branch production

use simple_format instead of gsub for comment body

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/problems/show.html.haml
@@ -40,7 +40,7 @@ @@ -40,7 +40,7 @@
40 = time_ago_in_words(comment.created_at, true) << " ago by [Unknown User]" 40 = time_ago_in_words(comment.created_at, true) << " ago by [Unknown User]"
41 %span.delete= link_to '&#10008;'.html_safe, app_problem_comment_path(@app, @problem, comment), :method => :delete, :data => { :confirm => "Are sure you don't need this comment?" }, :class => "destroy-comment" 41 %span.delete= link_to '&#10008;'.html_safe, app_problem_comment_path(@app, @problem, comment), :method => :delete, :data => { :confirm => "Are sure you don't need this comment?" }, :class => "destroy-comment"
42 %tr 42 %tr
43 - %td= comment.body.gsub("\n", "<br>").html_safe 43 + %td= simple_format comment.body
44 - if Errbit::Config.allow_comments_with_issue_tracker || !@app.issue_tracker_configured? 44 - if Errbit::Config.allow_comments_with_issue_tracker || !@app.issue_tracker_configured?
45 = form_for @comment, :url => app_problem_comments_path(@app, @problem) do |comment_form| 45 = form_for @comment, :url => app_problem_comments_path(@app, @problem) do |comment_form|
46 %p Add a comment 46 %p Add a comment