summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-04-04 22:16:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-04-04 22:16:17 +0000
commit9cf96580bf4b8cce342b1a675b84766d59ec7f3b (patch)
tree1321db585d039e95ba126705fce5132f6d370886 /app
parent46d67cb349fb48a5eb7812dcd9d66832de5ce8ab (diff)
downloadredmine-9cf96580bf4b8cce342b1a675b84766d59ec7f3b.tar.gz
redmine-9cf96580bf4b8cce342b1a675b84766d59ec7f3b.zip
RedCloth attribute :hard_break set to true to keep line breaks
git-svn-id: http://redmine.rubyforge.org/svn/trunk@421 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index b3f981076..3f3c02f11 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -128,7 +128,7 @@ module ApplicationHelper
# finally textilize text
@do_textilize ||= (Setting.text_formatting == 'textile') && (ActionView::Helpers::TextHelper.method_defined? "textilize")
- text = @do_textilize ? auto_link(RedCloth.new(text).to_html) : simple_format(auto_link(h(text)))
+ text = @do_textilize ? auto_link(RedCloth.new(text, [:hard_breaks]).to_html) : simple_format(auto_link(h(text)))
end
def error_messages_for(object_name, options = {})