From bb955bbb009cfc707139dc128642f5496798fd41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 2 Dec 2005 00:09:12 +0000 Subject: [PATCH] * Commiting live hack for handling whitespace --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index 40aa81e8fb..7760860ac2 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2508,7 +2508,7 @@ class Parser # If there are any tags, only include them if ( in_string( '', $text ) && in_string( '', $text ) ) { - preg_match_all( '/(.*?)<\/onlyinclude>\n?/s', $text, $m ); + preg_match_all( '/\n?(.*?)\n?<\/onlyinclude>/s', $text, $m ); $text = ''; foreach ($m[1] as $piece) $text .= $piece; -- 2.20.1