Wiki links:

* fixes wiki links with pipe in table (closes #893, #870, #894)
* prevent wiki link matching on multiple lines

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1280 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-03-21 17:39:02 +00:00
parent bbf422e229
commit 35a14cbfdc
3 changed files with 18 additions and 3 deletions
+2 -1
View File
@@ -510,7 +510,8 @@ class RedCloth < String
ratts, row = pba( $1, 'tr' ), $2 if row =~ /^(#{A}#{C}\. )(.*)/m
cells = []
row.split( '|' ).each do |cell|
#row.split( /\(?!\[\[[^\]])|(?![^\[]\]\])/ ).each do |cell|
row.split( /\|(?![^\[\|]*\]\])/ ).each do |cell|
ctyp = 'd'
ctyp = 'h' if cell =~ /^_/