Last modified: 2014-08-26 12:25:15 UTC
Currently, the extension uses this regex: $re = '~<tvar\|([^>]+)>(.*?)</>~u'; when parsing the content of "tvar"[1], but this do not work if the content spans multiple lines, as in https://www.mediawiki.org/w/index.php?title=Thumbnail_style_update&diff=1074482&oldid=1074458 I believe it would work if we set PCRE_DOTALL for this regex (if that is the case, this is an easy bug to fix, so I'm adding the appropriated keyword to the bug report). [1] https://github.com/wikimedia/mediawiki-extensions-Translate/blob/bdd2d990d3785360a0377d32f32188396bbe8b45/tag/TPSection.php#L42-L52
PCRE_DOTALL is the suffix 's'. http://fi2.php.net/manual/en/reference.pcre.pattern.modifiers.php Please add a test case if submitting a patch.