Index: trunk/phase3/includes/Parser.php |
— | — | @@ -2508,7 +2508,7 @@ |
2509 | 2509 | |
2510 | 2510 | # If there are any <onlyinclude> tags, only include them |
2511 | 2511 | if ( in_string( '<onlyinclude>', $text ) && in_string( '</onlyinclude>', $text ) ) { |
2512 | | - preg_match_all( '/<onlyinclude>\n?(.*?)\n?<\/onlyinclude>/s', $text, $m ); |
| 2512 | + preg_match_all( '/<onlyinclude>(.*?)\n?<\/onlyinclude>/s', $text, $m ); |
2513 | 2513 | $text = ''; |
2514 | 2514 | foreach ($m[1] as $piece) |
2515 | 2515 | $text .= $piece; |