From 4c5f567db2b250b83e100bd2c00cb140d199e6f9 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Mon, 19 Jul 2004 19:03:43 +0000 Subject: [PATCH] allow blank lines in preformatted text started by blanks. BUG #993991 --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1