From: Ævar Arnfjörð Bjarmason Date: Sat, 3 Dec 2005 09:27:50 +0000 (+0000) Subject: * whitespace, only strip the last newline X-Git-Tag: 1.6.0~1058 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=3b837f262d23a6dae580406bbe57027a919d8557;p=lhc%2Fweb%2Fwiklou.git * whitespace, only strip the last newline --- diff --git a/includes/Parser.php b/includes/Parser.php index d4c39976de..7679655a72 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( '/\n?(.*?)\n?<\/onlyinclude>/s', $text, $m ); + preg_match_all( '/(.*?)\n?<\/onlyinclude>/s', $text, $m ); $text = ''; foreach ($m[1] as $piece) $text .= $piece;