From: Gabriel Wicke Date: Sat, 10 Apr 2004 01:13:48 +0000 (+0000) Subject: no new p on single newline X-Git-Tag: 1.3.0beta1~492 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=f530b18831f1003ceb663d6c6e097d2c958268ef;p=lhc%2Fweb%2Fwiklou.git no new p on single newline --- diff --git a/includes/Parser.php b/includes/Parser.php index da0bc0ea66..b602186433 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -261,7 +261,7 @@ class Parser $ti = $this->mTitle->getText() ; $ti = explode ( ":" , $ti , 2 ) ; if ( $cat != $ti[0] ) return "" ; - $r = "
\n" ; + $r = '
\n'; $articles = array() ; $parents = array () ; @@ -1118,11 +1118,11 @@ class Parser } else { $t = ''; } - } else { + } else if ($this->mLastSection != $newSection or $newSection != 'p') { $text .= $this->closeParagraph(); $text .= "<" . $newSection . ">"; $this->mLastSection = $newSection; - } + } } }