r82552 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82551‎ | r82552 | r82553 >
Date:14:48, 21 February 2011
Author:thomasv
Status:ok
Tags:
Comment:
close div forgotten in r82513; match new lines too.
Modified paths:
  • /trunk/extensions/DoubleWiki/DoubleWiki_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DoubleWiki/DoubleWiki_body.php
@@ -26,7 +26,7 @@
2727 * Read the list of matched phrases and add tags to the html output.
2828 */
2929 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";
3131 $m = array();
3232 if ( ! preg_match( $pattern, $text, $m ) ) {
3333 return;

Follow-up revisions

RevisionCommit summaryAuthorDate
r825761.17wmf1: MFT r82475, r82480, r82538, r82547, r82550, r82552, r82554, r82555,...catrope21:37, 21 February 2011
r85027MFT various extension fixes: r81713, r81742, r81743, r81908, r81966, r81969, ...demon18:23, 30 March 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r82513fix regression in r73461: Use pre tag instead of p. Use equal sign instead of...thomasv16:29, 20 February 2011

Status & tagging log