|
@@ 2130-2131 (lines=2) @@
|
| 2127 |
|
$pos2 = $pos - 1; |
| 2128 |
|
|
| 2129 |
|
// See the comment at the end of the big loop - just eating whitespace ;). |
| 2130 |
|
if (!empty($tag['block_level']) && substr($message, $pos, 4) == '<br>') |
| 2131 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + 4); |
| 2132 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside' && preg_match('~(<br>| |\s)*~', substr($message, $pos), $matches) != 0) |
| 2133 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2134 |
|
} |
|
@@ 2405-2406 (lines=2) @@
|
| 2402 |
|
$pos1 += $ot_strlen + 2; |
| 2403 |
|
|
| 2404 |
|
// Trim or eat trailing stuff... see comment at the end of the big loop. |
| 2405 |
|
if (!empty($open_tags[$i]['block_level']) && substr($message, $pos, 4) == '<br>') |
| 2406 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + 4); |
| 2407 |
|
if (!empty($open_tags[$i]['trim']) && $tag['trim'] != 'inside' && preg_match('~(<br>| |\s)*~', substr($message, $pos), $matches) != 0) |
| 2408 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2409 |
|
|
|
@@ 2580-2581 (lines=2) @@
|
| 2577 |
|
} |
| 2578 |
|
|
| 2579 |
|
// If this is block level, eat any breaks after it. |
| 2580 |
|
if (!empty($tag['block_level']) && substr($message, $pos + 1, 4) == '<br>') |
| 2581 |
|
$message = substr($message, 0, $pos + 1) . substr($message, $pos + 5); |
| 2582 |
|
|
| 2583 |
|
// Are we trimming outside this tag? |
| 2584 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'outside' && preg_match('~(<br>| |\s)*~', substr($message, $pos + 1), $matches) != 0) |