From: Jens Frank Date: Mon, 19 Jul 2004 19:03:43 +0000 (+0000) Subject: allow blank lines in preformatted text started by blanks. BUG #993991 X-Git-Tag: 1.5.0alpha1~2638 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=4c5f567db2b250b83e100bd2c00cb140d199e6f9;p=lhc%2Fweb%2Fwiklou.git allow blank lines in preformatted text started by blanks. BUG #993991 --- diff --git a/includes/Parser.php b/includes/Parser.php index 5ee377873e..bcaf49f274 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1344,7 +1344,7 @@ class Parser $inBlockElem = true; } } else if ( !$inBlockElem && !$this->mInPre ) { - if ( " " == $t{0} and trim($t) != '' ) { + if ( " " == $t{0} and ( $this->mLastSection == 'pre' or trim($t) != '' ) ) { // pre if ($this->mLastSection != 'pre') { $paragraphStack = false;