Project

General

Profile

Defect #5445 » formatter.rb.diff

Yuki Kita, 2010-06-22 15:59

View differences:

lib/redmine/wiki_formatting/textile/formatter.rb (working copy)
67 67
          toc_item = content.gsub(/(\[\[([^\]\|]*)(\|([^\]]*))?\]\])/) { $4 || $2 }
68 68
          # sanitizes titles from links
69 69
          # see redcloth3.rb, same as "#{pre}#{text}#{post}"
70
          toc_item.gsub!(LINK_RE) { $2+$4+$9 }
70
          toc_item.gsub!(LINK_RE) { [$2, $4, $9].join }
71 71
          # removes styles
72 72
          # eg. %{color:red}Triggers% => Triggers
73 73
          toc_item.gsub! %r[%\{[^\}]*\}([^%]+)%], '\\1'
(5-5/5)