|
@@ 2116-2117 (lines=2) @@
|
| 2113 |
|
$pos2 = $pos - 1; |
| 2114 |
|
|
| 2115 |
|
// See the comment at the end of the big loop - just eating whitespace ;). |
| 2116 |
|
if (!empty($tag['block_level']) && substr($message, $pos, 4) == '<br>') |
| 2117 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + 4); |
| 2118 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside' && preg_match('~(<br>| |\s)*~', substr($message, $pos), $matches) != 0) |
| 2119 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2120 |
|
} |
|
@@ 2391-2392 (lines=2) @@
|
| 2388 |
|
$pos1 += $ot_strlen + 2; |
| 2389 |
|
|
| 2390 |
|
// Trim or eat trailing stuff... see comment at the end of the big loop. |
| 2391 |
|
if (!empty($open_tags[$i]['block_level']) && substr($message, $pos, 4) == '<br>') |
| 2392 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + 4); |
| 2393 |
|
if (!empty($open_tags[$i]['trim']) && $tag['trim'] != 'inside' && preg_match('~(<br>| |\s)*~', substr($message, $pos), $matches) != 0) |
| 2394 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2395 |
|
|
|
@@ 2566-2567 (lines=2) @@
|
| 2563 |
|
} |
| 2564 |
|
|
| 2565 |
|
// If this is block level, eat any breaks after it. |
| 2566 |
|
if (!empty($tag['block_level']) && substr($message, $pos + 1, 4) == '<br>') |
| 2567 |
|
$message = substr($message, 0, $pos + 1) . substr($message, $pos + 5); |
| 2568 |
|
|
| 2569 |
|
// Are we trimming outside this tag? |
| 2570 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'outside' && preg_match('~(<br>| |\s)*~', substr($message, $pos + 1), $matches) != 0) |