Commit 64bbc4c1108b217fdab302ab251157cff9ba4e52
Exists in
master
and in
1 other branch
Merge pull request #305 from lest/patch-1
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 | 40 | = time_ago_in_words(comment.created_at, true) << " ago by [Unknown User]" |
41 | 41 | %span.delete= link_to '✘'.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 | 42 | %tr |
43 | - %td= comment.body.gsub("\n", "<br>").html_safe | |
43 | + %td= simple_format comment.body | |
44 | 44 | - if Errbit::Config.allow_comments_with_issue_tracker || !@app.issue_tracker_configured? |
45 | 45 | = form_for @comment, :url => app_problem_comments_path(@app, @problem) do |comment_form| |
46 | 46 | %p Add a comment | ... | ... |