|
@@ 1457-1465 (lines=9) @@
|
| 1454 |
|
$token =& $parts[1]; |
| 1455 |
|
$text =& $parts[2]; |
| 1456 |
|
|
| 1457 |
|
if ( empty( $token ) ) { |
| 1458 |
|
// Reached end of text span: empty stack without emitting. |
| 1459 |
|
// any more emphasis. |
| 1460 |
|
while ( $token_stack[0] ) { |
| 1461 |
|
$text_stack[1] .= array_shift( $token_stack ); |
| 1462 |
|
$text_stack[0] .= array_shift( $text_stack ); |
| 1463 |
|
} |
| 1464 |
|
break; |
| 1465 |
|
} |
| 1466 |
|
|
| 1467 |
|
$token_len = strlen( $token ); |
| 1468 |
|
if ( $tree_char_em ) { |
|
@@ 1518-1521 (lines=4) @@
|
| 1515 |
|
} elseif ( $token_len == 2 ) { |
| 1516 |
|
if ( $strong ) { |
| 1517 |
|
// Unwind any dangling emphasis marker: |
| 1518 |
|
if ( strlen( $token_stack[0] ) == 1 ) { |
| 1519 |
|
$text_stack[1] .= array_shift( $token_stack ); |
| 1520 |
|
$text_stack[0] .= array_shift( $text_stack ); |
| 1521 |
|
} |
| 1522 |
|
// Closing strong marker: |
| 1523 |
|
array_shift( $token_stack ); |
| 1524 |
|
$span = array_shift( $text_stack ); |