From e1bb4a5baa34343b94d8858b8df036f2814f6389 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 27 Sep 2007 19:44:23 +0000 Subject: [PATCH] Fixed: Links to other wiki pages in headings get corrupted (class attributes shown). git-svn-id: http://redmine.rubyforge.org/svn/trunk@769 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/wiki_formatting.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb index 2bfbdf1d8..623f2491f 100644 --- a/lib/redmine/wiki_formatting.rb +++ b/lib/redmine/wiki_formatting.rb @@ -47,7 +47,7 @@ module Redmine if tag =~ /^h(\d)$/ @toc << [$1.to_i, content] end - content = "" + content + content = "" + content textile_p(tag, atts, cite, content) end @@ -61,7 +61,9 @@ module Redmine div_class << ' right' if $1 == '>' out = "
" @toc.each_with_index do |heading, index| - out << "#{heading.last}" + # remove wiki links from the item + toc_item = heading.last.gsub(/(\[\[|\]\])/, '') + out << "#{toc_item}" end out << '
' out -- 2.39.5