Index: trunk/extensions/VisualEditor/modules/parser/pegParser.pegjs.txt |
— | — | @@ -327,6 +327,7 @@ |
328 | 328 | = c:(text / inline_element / (!inline_breaks ch:. { return ch; }))+ { |
329 | 329 | var out = []; |
330 | 330 | var text = ''; |
| 331 | + c = flatten(c); |
331 | 332 | for (var i = 0; i < c.length; i++) { |
332 | 333 | if (typeof c[i] == 'string') { |
333 | 334 | text += c[i]; |
— | — | @@ -348,7 +349,7 @@ |
349 | 350 | = c:(text / !inline_breaks (inline_element / [^\n]))+ { |
350 | 351 | var out = []; |
351 | 352 | var text = ''; |
352 | | - //dp("inlineline: " + print_r(c)); |
| 353 | + c = flatten(c); |
353 | 354 | for (var i = 0; i < c.length; i++) { |
354 | 355 | if (typeof c[i] == 'string') { |
355 | 356 | text += c[i]; |