| Index: trunk/extensions/DoubleWiki/DoubleWiki_body.php |
| — | — | @@ -26,7 +26,7 @@ |
| 27 | 27 | * Read the list of matched phrases and add tags to the html output. |
| 28 | 28 | */ |
| 29 | 29 | function addMatchingTags ( &$text, $lang ) { |
| 30 | | - $pattern = "/<div id=\"align-$lang\" style=\"display:none;\"><pre>(.*?)<\/pre>/is"; |
| | 30 | + $pattern = "/<div id=\"align-$lang\" style=\"display:none;\">\n*<pre>(.*?)<\/pre>\n*<\/div>/is"; |
| 31 | 31 | $m = array(); |
| 32 | 32 | if ( ! preg_match( $pattern, $text, $m ) ) { |
| 33 | 33 | return; |