@@ -774,7 +774,8 module ApplicationHelper | |||
|
774 | 774 | text.to_s. |
|
775 | 775 | gsub(/\r\n?/, "\n"). # \r\n and \r -> \n |
|
776 | 776 | gsub(/\n\n+/, "<br /><br />"). # 2+ newline -> 2 br |
|
777 |
gsub(/([^\n]\n)(?=[^\n])/, '\1<br />') |
|
|
777 | gsub(/([^\n]\n)(?=[^\n])/, '\1<br />'). # 1 newline -> br | |
|
778 | html_safe | |
|
778 | 779 | end |
|
779 | 780 | |
|
780 | 781 | def lang_options_for_select(blank=true) |
General Comments 0
You need to be logged in to leave comments.
Login now