| @@ 794-795 (lines=2) @@ | ||
| 791 | ||
| 792 | protected function _doHeaders_callback_setext($matches) { |
|
| 793 | # Terrible hack to check we haven't found an empty list item. |
|
| 794 | if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1])) |
|
| 795 | return $matches[0]; |
|
| 796 | ||
| 797 | $level = $matches[2]{0} == '=' ? 1 : 2; |
|
| 798 | ||
| @@ 988-989 (lines=2) @@ | ||
| 985 | return $text; |
|
| 986 | } |
|
| 987 | protected function _doHeaders_callback_setext($matches) { |
|
| 988 | if ($matches[3] == '-' && preg_match('{^- }', $matches[1])) |
|
| 989 | return $matches[0]; |
|
| 990 | ||
| 991 | $level = $matches[3]{0} == '=' ? 1 : 2; |
|
| 992 | ||