Last modified: 2014-11-17 09:43:49 UTC
With wikitext such as (taken from test "Double interlanguage link") Blah blah blah [[es:Spanish]] [[zh:Chinese]] the output is <p>Blah blah blah <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Spanish"/></p> <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/> Only the last link is taken out of the <p> by ParagraphWrapper::closeOpenPTag instead of all of them. This doesn't produce any visual differences but it looks strange. Found while fixing bug #69240, more information there. Another possible case (or an unrelated issue) appears with this enwiki text: ---------------------------- {{Aligudarz County}} [[Category:Populated places in Aligudarz County]] {{Aligudarz-geo-stub}} --------------------------- where a category link gets put inside an unnecessary <p> because of an existing <br/>.
(In reply to Marc Ordinas i Llopis from comment #0) > Another possible case (or an unrelated issue) appears with this enwiki text: > > ---------------------------- > {{Aligudarz County}} > > > [[Category:Populated places in Aligudarz County]] > > {{Aligudarz-geo-stub}} > --------------------------- > > where a category link gets put inside an unnecessary <p> because of an > existing <br/>. I had added this to bug 69240, and this p-wrapping issue not related to the rendering. It seems PHP parser+Tidy have inconsistent handling here. See https://en.wikipedia.org/wiki/User:SSastry_%28WMF%29/Tests:whitespace?oldid=629764353 vs http://parsoid-lb.eqiad.wikimedia.org/enwiki/User%3ASSastry_%28WMF%29%2FTests%3Awhitespace?oldid=629764353 A patch for the p-wrapping issue itself is coming up shortly.
Change 166891 had a related patch set uploaded by Subramanya Sastry: (Bug 71361) Leave link tags out of p-wrappers wherever possible. https://gerrit.wikimedia.org/r/166891
Still failing: a [[Category:A1]] [[Category:A2]] [[Category:A3]] [[Category:A4]]
Change 166891 merged by jenkins-bot: (Bug 71361) Leave link tags out of p-wrappers wherever possible. https://gerrit.wikimedia.org/r/166891