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 = "