diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index df35a379d..93ef7a6ad 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -774,7 +774,8 @@ module ApplicationHelper text.to_s. gsub(/\r\n?/, "\n"). # \r\n and \r -> \n gsub(/\n\n+/, "

"). # 2+ newline -> 2 br - gsub(/([^\n]\n)(?=[^\n])/, '\1
') # 1 newline -> br + gsub(/([^\n]\n)(?=[^\n])/, '\1
'). # 1 newline -> br + html_safe end def lang_options_for_select(blank=true)