|
@@ 2138-2139 (lines=2) @@
|
| 2135 |
|
if (!empty($tag['block_level'])) |
| 2136 |
|
$whitespace_regex .= '( |\s)*<br>'; |
| 2137 |
|
// Trim one line of whitespace after unnested tags, but all of it after nested ones |
| 2138 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside') |
| 2139 |
|
$whitespace_regex .= empty($tag['require_parents']) ? '( |\s)*' : '(<br>| |\s)*'; |
| 2140 |
|
|
| 2141 |
|
if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0) |
| 2142 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
|
@@ 2417-2418 (lines=2) @@
|
| 2414 |
|
$whitespace_regex = ''; |
| 2415 |
|
if (!empty($tag['block_level'])) |
| 2416 |
|
$whitespace_regex .= '( |\s)*<br>'; |
| 2417 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside') |
| 2418 |
|
$whitespace_regex .= empty($tag['require_parents']) ? '( |\s)*' : '(<br>| |\s)*'; |
| 2419 |
|
if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0) |
| 2420 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2421 |
|
|