Page MenuHomePhabricator

Should adjacent HTML lists be merged?
Open, Needs TriagePublic

Description

This question was triggered by https://nl.wikipedia.org/w/index.php?title=Overleg_Wikipedia:Arbitragecommissie/Zaken/Obama_Nick_Gur&curid=5347436&diff=56008320&oldid=56008272

The content prior to this edit was:

Original
:1
::2
:::3
::::4

:::3
::::4

The content after this edit was:

Original
:1
::2
:::3
::::4
:::::5

:::3
::::4

But perhaps the result ought to have been a single HTML list structure:

Original
:1
::2
:::3
::::4
:::::5
:::3
::::4

Event Timeline

I don't think that I want to see a Reply collapsing all the list gaps across the entire page, because that can make some dirty diffs. But if the reply is immediately adjacent to a list gap, I think we should repair the list gap (i.e., remove the inappropriate blank like) rather than maintaining it.

Note on fr.wp, default stylesheet produces a different rendering for given examples.

In my humble opinion, the tool should avoid this kind of automatic fixes which may cause other issues. Contributors are able to manually fix the wikitext if that is needed.