From: Ævar Arnfjörð Bjarmason Date: Fri, 2 Dec 2005 00:09:12 +0000 (+0000) Subject: * Commiting live hack for handling whitespace X-Git-Tag: 1.6.0~1081 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=bb955bbb009cfc707139dc128642f5496798fd41;p=lhc%2Fweb%2Fwiklou.git * Commiting live hack for handling whitespace --- 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;