From f6fe15716e4714c5f6d4d88149927b7dfa5c6fce Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 9 Sep 2007 10:41:02 +0000 Subject: [PATCH] Small fix to TOC regexp. git-svn-id: http://redmine.rubyforge.org/svn/trunk@719 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/wiki_formatting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!(/

\{\{(<>?)toc\}\}<\/p>/i) do + text.gsub!(/

\{\{([<>]?)toc\}\}<\/p>/i) do div_class = 'toc' div_class << ' right' if $1 == '>' out = "

"