Page MenuHomePhabricator

Extra lines being inserted in edited transclusion wikitext serialisation when “block” format due to unexpected extra spaces
Closed, ResolvedPublic0 Estimated Story Points

Description

I’ve seen two problematic editions on articles where the infobox’s templatedata contains format: block:

The diff is unreadable… I guess this is caused by the space on each line before the delimiting pipe?

Event Timeline

matmarex edited projects, added Parsoid; removed VisualEditor.

Interesting ... this looks like some regexp issue in Parsoid.

Yes, confirmed. This is a bug because of the leading space before the pipe. Will fix and add new tests. This will be deployed on Wednesday.

Change 273975 had a related patch set uploaded (by Subramanya Sastry):
T128319: Fix fragile tests for non-block-format transclusions

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

Change 273975 merged by jenkins-bot:
T128319: Fix fragile tests for non-block-format transclusions

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

For the first one, it was then fixed by https://fr.wikipedia.org/w/index.php?title=Windows_10&diff=prev&oldid=123794378 later (also via VE and Parsoid). Not quite sure why?

For the first one, it was then fixed by https://fr.wikipedia.org/w/index.php?title=Windows_10&diff=prev&oldid=123794378 later (also via VE and Parsoid). Not quite sure why?

That is a wikitext edit as far as I can tell.

Jdforrester-WMF renamed this task from Lines inserted in “block” format to Extra lines being inserted in edited transclusion wikitext serialisation when “block” format due to unexpected extra spaces.Mar 1 2016, 1:15 AM
Jdforrester-WMF assigned this task to ssastry.
ssastry removed a project: Patch-For-Review.

This fix has been deployed.