@@ 1080-1088 (lines=9) @@ | ||
1077 | $token =& $parts[1]; |
|
1078 | $text =& $parts[2]; |
|
1079 | ||
1080 | if (empty($token)) { |
|
1081 | # Reached end of text span: empty stack without emitting. |
|
1082 | # any more emphasis. |
|
1083 | while ($token_stack[0]) { |
|
1084 | $text_stack[1] .= array_shift($token_stack); |
|
1085 | $text_stack[0] .= array_shift($text_stack); |
|
1086 | } |
|
1087 | break; |
|
1088 | } |
|
1089 | ||
1090 | $token_len = strlen($token); |
|
1091 | if ($tree_char_em) { |
|
@@ 1139-1142 (lines=4) @@ | ||
1136 | } else if ($token_len == 2) { |
|
1137 | if ($strong) { |
|
1138 | # Unwind any dangling emphasis marker: |
|
1139 | if (strlen($token_stack[0]) == 1) { |
|
1140 | $text_stack[1] .= array_shift($token_stack); |
|
1141 | $text_stack[0] .= array_shift($text_stack); |
|
1142 | } |
|
1143 | # Closing strong marker: |
|
1144 | array_shift($token_stack); |
|
1145 | $span = array_shift($text_stack); |