summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-09 10:41:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-09 10:41:02 +0000
commitf6fe15716e4714c5f6d4d88149927b7dfa5c6fce (patch)
tree2b02a0beb832102a2987a3d463ac7568160a5d23 /lib/redmine/wiki_formatting.rb
parentf3364b9dce6f13905e94252b732b203203cded96 (diff)
downloadredmine-f6fe15716e4714c5f6d4d88149927b7dfa5c6fce.tar.gz
redmine-f6fe15716e4714c5f6d4d88149927b7dfa5c6fce.zip
Small fix to TOC regexp.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@719 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/wiki_formatting.rb')
-rw-r--r--lib/redmine/wiki_formatting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb
index 2d26cabd2..2bfbdf1d8 100644
--- a/lib/redmine/wiki_formatting.rb
+++ b/lib/redmine/wiki_formatting.rb
@@ -56,7 +56,7 @@ module Redmine
alias :textile_h3 :textile_p_withtoc
def inline_toc(text)
- text.gsub!(/<p>\{\{(<>?)toc\}\}<\/p>/i) do
+ text.gsub!(/<p>\{\{([<>]?)toc\}\}<\/p>/i) do
div_class = 'toc'
div_class << ' right' if $1 == '>'
out = "<div class=\"#{div_class}\">"