|
@@ 2222-2223 (lines=2) @@
|
| 2219 |
|
if (!empty($tag['block_level'])) |
| 2220 |
|
$whitespace_regex .= '( |\s)*(<br>)?'; |
| 2221 |
|
// Trim one line of whitespace after unnested tags, but all of it after nested ones |
| 2222 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside') |
| 2223 |
|
$whitespace_regex .= empty($tag['require_parents']) ? '( |\s)*' : '(<br>| |\s)*'; |
| 2224 |
|
|
| 2225 |
|
if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0) |
| 2226 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
|
@@ 2501-2502 (lines=2) @@
|
| 2498 |
|
$whitespace_regex = ''; |
| 2499 |
|
if (!empty($tag['block_level'])) |
| 2500 |
|
$whitespace_regex .= '( |\s)*(<br>)?'; |
| 2501 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside') |
| 2502 |
|
$whitespace_regex .= empty($tag['require_parents']) ? '( |\s)*' : '(<br>| |\s)*'; |
| 2503 |
|
if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0) |
| 2504 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2505 |
|
|