Page MenuHomePhabricator

Parsoid inserts <nowiki /> after a category, trying to protect against a linktrail that doesn't exist
Closed, ResolvedPublic

Description

<link rel="mw:WikiLink/Category" href="Category:Foo" />bar

serializes to

[[Category:Foo]]<nowiki />
bar

That nowiki is totally unnecessary, obviously.

Even when you edit an existing category that has data-parsoid info causing it to not have a trailing newline, you'll get [[Category:Foo]]<nowiki />Bar. That nowiki is also not needed because categories can't have link trails.


Version: unspecified
Severity: normal

Details

Reference
bz51263

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:50 AM
bzimport set Reference to bz51263.

Change 73775 had a related patch set uploaded by Subramanya Sastry:
(Bug 51263): Link trails/prefixes dont apply to category links

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

Change 73775 merged by jenkins-bot:
(Bug 51263): Link trails/prefixes dont apply to category links

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

To be rt tested and deployed, but this should be fixed.