|
@@ 2040-2041 (lines=2) @@
|
| 2037 |
|
$pos2 = $pos - 1; |
| 2038 |
|
|
| 2039 |
|
// See the comment at the end of the big loop - just eating whitespace ;). |
| 2040 |
|
if (!empty($tag['block_level']) && substr($message, $pos, 4) == '<br>') |
| 2041 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + 4); |
| 2042 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside' && preg_match('~(<br>| |\s)*~', substr($message, $pos), $matches) != 0) |
| 2043 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2044 |
|
} |
|
@@ 2315-2316 (lines=2) @@
|
| 2312 |
|
$pos1 += $ot_strlen + 2; |
| 2313 |
|
|
| 2314 |
|
// Trim or eat trailing stuff... see comment at the end of the big loop. |
| 2315 |
|
if (!empty($open_tags[$i]['block_level']) && substr($message, $pos, 4) == '<br>') |
| 2316 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + 4); |
| 2317 |
|
if (!empty($open_tags[$i]['trim']) && $tag['trim'] != 'inside' && preg_match('~(<br>| |\s)*~', substr($message, $pos), $matches) != 0) |
| 2318 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2319 |
|
|
|
@@ 2490-2491 (lines=2) @@
|
| 2487 |
|
} |
| 2488 |
|
|
| 2489 |
|
// If this is block level, eat any breaks after it. |
| 2490 |
|
if (!empty($tag['block_level']) && substr($message, $pos + 1, 4) == '<br>') |
| 2491 |
|
$message = substr($message, 0, $pos + 1) . substr($message, $pos + 5); |
| 2492 |
|
|
| 2493 |
|
// Are we trimming outside this tag? |
| 2494 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'outside' && preg_match('~(<br>| |\s)*~', substr($message, $pos + 1), $matches) != 0) |