Index: trunk/extensions/DoubleWiki/DoubleWiki_body.php |
— | — | @@ -26,13 +26,13 @@ |
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;\">\n<p>([^<]*?)<\/p>\n<\/div>/is"; |
| 30 | + $pattern = "/<div id=\"align-$lang\" style=\"display:none;\"><pre>(.*?)<\/pre>/is"; |
31 | 31 | $m = array(); |
32 | 32 | if ( ! preg_match( $pattern, $text, $m ) ) { |
33 | 33 | return; |
34 | 34 | } |
35 | 35 | $text = str_replace( $m[1], '', $text ); |
36 | | - $line_pattern = '/\s*([^:\n]*?)\s*:\s*([^:\n]*?)\s*\n/i'; |
| 36 | + $line_pattern = '/\s*([^:\n]*?)\s*=\s*([^:\n]*?)\s*\n/i'; |
37 | 37 | $items = array(); |
38 | 38 | preg_match_all( $line_pattern, $m[1], $items, PREG_SET_ORDER ); |
39 | 39 | foreach ( $items as $n => $i ) { |