Page MenuHomePhabricator

Difference in paragraph wrapping after transclusion end
Open, LowPublic

Description

Isolated from the rendering difference at,
https://en.wikivoyage.org/wiki/Talk:Indonesian_phrasebook#Pagebanner

Snippit,

{{1x|

}}
hello

Parsoid

<span about="#mwt1" typeof="mw:Transclusion" data-mw="{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;1x&quot;,&quot;href&quot;:&quot;./Template:1x&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;\n\n&quot;}},&quot;i&quot;:0}}]}" id="mwAg">

</span>
<p id="mwAw">hello</p>

Legacy parser

<p><br>
</p><p>hello
</p>

Event Timeline

Change #1013380 had a related patch set uploaded (by Arlolra; author: Arlolra):

[mediawiki/services/parsoid@master] [WIP] Difference in paragraph wrapping around transclusions

https://gerrit.wikimedia.org/r/1013380

We have a patch for this, which works, but (relaying from @ABreault-WMF), "the output is unfortunate, with the usual result being that the template range is expanded undesirably, making more content uneditable. Subbu and I had concluded that it probably wasn't worth doing and I was going to close it as known differences between the parsers."

ssastry lowered the priority of this task from Medium to Low.

I am going to reopen this because of the discussion on the dupe task -- the patch that caused us to decline it does a slightly different thing (it looks at start of template) than what is needed (look at end of template). It is possible we arrive at the same result and decline it, but worth investigating a bit by starting off of Arlo's patch.