diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-05-30 16:35:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-05-30 16:35:36 +0000 |
commit | 88dea1a06d833067e5a6d9668c4b6829e027a9f5 (patch) | |
tree | c8a6486821da0c3cd34b2d756e33f59a50b1295c /lib/redmine/wiki_formatting.rb | |
parent | 4311ecbc04e3256bd8d7c9a8668dff32349b0159 (diff) | |
download | redmine-88dea1a06d833067e5a6d9668c4b6829e027a9f5.tar.gz redmine-88dea1a06d833067e5a6d9668c4b6829e027a9f5.zip |
Adds multi-levels blockquotes support by using > at the beginning of lines.
Textile is preserved inside quoted text.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1479 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/wiki_formatting.rb')
-rw-r--r-- | lib/redmine/wiki_formatting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb index 3c1eac020..7197af2c3 100644 --- a/lib/redmine/wiki_formatting.rb +++ b/lib/redmine/wiki_formatting.rb @@ -45,7 +45,7 @@ module Redmine # Patch for RedCloth. Fixed in RedCloth r128 but _why hasn't released it yet. # <a href="http://code.whytheluckystiff.net/redcloth/changeset/128">http://code.whytheluckystiff.net/redcloth/changeset/128</a> def hard_break( text ) - text.gsub!( /(.)\n(?!\n|\Z| *([#*=]+(\s|$)|[{|]))/, "\\1<br />\n" ) if hard_breaks + text.gsub!( /(.)\n(?!\n|\Z|>| *(>? *[#*=]+(\s|$)|[{|]))/, "\\1<br />\n" ) if hard_breaks end # Patch to add code highlighting support to RedCloth |