Commit f6fe1571 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Small fix to TOC regexp.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@719 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent f3364b9d
......@@ -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}\">"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment