https://bugzilla.wikimedia.org/show_bug.cgi?id=68451
Bug ID: 68451 Summary: Translation: <tvar> should accept multi-line content Product: MediaWiki extensions Version: unspecified Hardware: All OS: All Status: NEW Keywords: easy Severity: normal Priority: Unprioritized Component: Translate Assignee: wikibugs-l@lists.wikimedia.org Reporter: he7...@gmail.com CC: da...@sheetmusic.org.uk, niklas.laxst...@gmail.com, siebr...@kitano.nl Web browser: --- Mobile Platform: --- 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 -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l