Defect #5445 » formatter.rb.diff
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' |
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »