Page MenuHomePhabricator

VisualEditor: [Regression] Categories and DEFAULTSORT meta items getting modified to strip default whitespace?
Open, MediumPublic


Sometimes editing a page in VisualEditor is rearranging categories so that they always end up on a single line, which is inconvenient for people looking at the wikitext source later.


Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:15 AM
bzimport set Reference to bz65647.

Parsoid bug? We hopefully aren't dirtying these, but even if we are, Parsoid's default whitespace should insert a \n before each of these anyway…

We only use the default newline spacing if the categories are actually new content. So if VE is just removing the newlines, but leaves the categories, a result as in the link is to be expected.

Round-tripping works fine with selser:

Even without selser the newlines are preserved:

This makes it very likely that this is in fact VE removing newlines.

Other example that also displays other problems (extra characters at the beginning, and strange characters in the text ☃☃)

Jdforrester-WMF lowered the priority of this task from High to Medium.Jan 15 2015, 12:29 AM
Jdforrester-WMF set Security to None.