|
@@ 2231-2232 (lines=2) @@
|
| 2228 |
|
if (!empty($tag['block_level'])) |
| 2229 |
|
$whitespace_regex .= '( |\s)*(<br>)?'; |
| 2230 |
|
// Trim one line of whitespace after unnested tags, but all of it after nested ones |
| 2231 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside') |
| 2232 |
|
$whitespace_regex .= empty($tag['require_parents']) ? '( |\s)*' : '(<br>| |\s)*'; |
| 2233 |
|
|
| 2234 |
|
if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0) |
| 2235 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
|
@@ 2514-2515 (lines=2) @@
|
| 2511 |
|
$whitespace_regex = ''; |
| 2512 |
|
if (!empty($tag['block_level'])) |
| 2513 |
|
$whitespace_regex .= '( |\s)*(<br>)?'; |
| 2514 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside') |
| 2515 |
|
$whitespace_regex .= empty($tag['require_parents']) ? '( |\s)*' : '(<br>| |\s)*'; |
| 2516 |
|
if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0) |
| 2517 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2518 |
|
|