Bug: T153140
Change-Id: I799363727162a0f337652b26bb69fe35c61a8553
# T2553: Note that a '|' inside an invalid link should not
# be mistaken as delimiting cell parameters
- if ( strpos( $cell_data[0], '[[' ) !== false ) {
+ # Bug T153140: Neither should language converter markup.
+ if ( preg_match( '/\[\[|-\{/', $cell_data[0] ) === 1 ) {
$cell = "{$previous}<{$last_tag}>{$cell}";
} elseif ( count( $cell_data ) == 1 ) {
$cell = "{$previous}<{$last_tag}>{$cell_data[0]}";
</dt></dl>
!! end
-# FIXME: This test is currently broken in the PHP parser (bug 52661)
!! test
-Don't break table handling if language converter markup is in the cell.
+T153140: Don't break table handling if language converter markup is in the cell.
!! options
language=sr variant=sr-ec
!! wikitext
<table>
<tr>
-<td>Б}-
+<td> B
</td></tr></table>
!! html/parsoid