Index: trunk/extensions/VisualEditor/modules/parser/pegTokenizer.pegjs.txt |
— | — | @@ -368,7 +368,7 @@ |
369 | 369 | = r:( t:[^<~[{\n\r\t|!\]} &=]+ { return t.join(''); } |
370 | 370 | / directive |
371 | 371 | / !inline_breaks text_char )+ { |
372 | | - return flatten_string ( r ); |
| 372 | + return flatten ( r ); |
373 | 373 | } |
374 | 374 | |
375 | 375 | |
— | — | @@ -875,10 +875,11 @@ |
876 | 876 | } |
877 | 877 | } else { |
878 | 878 | if (trail) { |
879 | | - target += trail.join(''); |
| 879 | + target = target.concat( [ trail.join('') ] ); |
880 | 880 | } |
881 | | - textTokens = [ target ]; |
| 881 | + textTokens = target; |
882 | 882 | } |
| 883 | + //console.log( "XXX:" + pp(obj) ); |
883 | 884 | return [obj].concat(textTokens, [new EndTagTk( 'a' )]); |
884 | 885 | } |
885 | 886 | |