From: Erik Moeller Date: Sat, 10 Apr 2004 06:50:49 +0000 (+0000) Subject: fix paragraphs again X-Git-Tag: 1.3.0beta1~483 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=d0229d46bf78f38007608dc4f1d664225537e23e;p=lhc%2Fweb%2Fwiklou.git fix paragraphs again --- diff --git a/includes/Parser.php b/includes/Parser.php index 548f8ff1a1..b5f61935dd 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1113,15 +1113,7 @@ class Parser } } else { $newSection = "p"; - if ( '' == trim($t) ) { - if ( '' == trim($lastLine) ) { - $text .= $this->closeParagraph(); - $text .= "<" . $newSection . ">
"; - $this->mLastSection = $newSection; - } else { - $t = ''; - } - } else if ($this->mLastSection != $newSection) { + if ( ''==trim($t) && ( '' != trim($lastLine) )) { $text .= $this->closeParagraph(); $text .= "<" . $newSection . ">"; $this->mLastSection = $newSection;