OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3364b9
)
Small fix to TOC regexp.
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 9 Sep 2007 10:41:02 +0000
(10:41 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 9 Sep 2007 10:41:02 +0000
(10:41 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@719
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
lib/redmine/wiki_formatting.rb
patch
|
blob
|
history
diff --git
a/lib/redmine/wiki_formatting.rb
b/lib/redmine/wiki_formatting.rb
index
2d26cab
..
2bfbdf1
100644
(file)
--- 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}\">"