diff --git a/inc/functions.php b/inc/functions.php index 045cf81b..5281a231 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -2386,10 +2386,6 @@ function markup(&$body, $track_cites = false, $op = false) { $tagsOpen = false; } } - - if ($tagsOpen !== false) { - $tagsOpen .= "
"; - } } // If tags are closed, check to see if they are now open. // This counts the number of open tags (that are not self-closing) against the number of complete tags. @@ -2412,6 +2408,9 @@ function markup(&$body, $track_cites = false, $op = false) { if (!$tagsOpen) { $bodyNew .= "

"; } + else if ($tagsOpen !== false) { + $tagsOpen .= "
"; + } } if ($tagsOpen !== false) {