Browse Source

Rails3: helper: use html_safe at simple_format_without_paragraph of ApplicationHelper

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7585 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.3.0
Toshi MARUYAMA 12 years ago
parent
commit
55f10b90f4
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      app/helpers/application_helper.rb

+ 2
- 1
app/helpers/application_helper.rb View File

@@ -774,7 +774,8 @@ module ApplicationHelper
text.to_s.
gsub(/\r\n?/, "\n"). # \r\n and \r -> \n
gsub(/\n\n+/, "<br /><br />"). # 2+ newline -> 2 br
gsub(/([^\n]\n)(?=[^\n])/, '\1<br />') # 1 newline -> br
gsub(/([^\n]\n)(?=[^\n])/, '\1<br />'). # 1 newline -> br
html_safe
end

def lang_options_for_select(blank=true)

Loading…
Cancel
Save