From: Jean-Philippe Lang Date: Sun, 9 Sep 2007 10:41:02 +0000 (+0000) Subject: Small fix to TOC regexp. X-Git-Tag: 0.6.0~163 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f6fe15716e4714c5f6d4d88149927b7dfa5c6fce;p=redmine.git Small fix to TOC regexp. git-svn-id: http://redmine.rubyforge.org/svn/trunk@719 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 = "

"