diff options
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 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}\">" |