Page MenuHomePhabricator

Space before colon rendered as <span> </span> when wrapped in a reference
Closed, ResolvedPublic

Description

Space before colon gets rendered as <span> </span> when wrapped in a reference. Clearly somehow related to T94509: Space before colon in French is wrapped in mw:Placeholder wrapper. Example: http://en.wikipedia.beta.wmflabs.org/w/index.php?title=French_colon&diff=216680&oldid=216679

To reproduce:

  • Have a wikitext page with foo : bar. (It won't work if you just type that on a page, it must go through Parsoid.)
  • In VisualEditor, select that text, insert a basic reference, and paste it inside.
  • Save the page. Result: <ref>foo<span> </span>: bar</ref>

Originally reported by @NicoV at T96589:
https://fr.wikipedia.org/w/index.php?title=Lyc%C3%A9e_Paul_Eluard&diff=prev&oldid=113829511
https://fr.wikipedia.org/w/index.php?title=Lyc%C3%A9e_Paul_Eluard&diff=prev&oldid=113829346
https://fr.wikipedia.org/w/index.php?title=Lyc%C3%A9e_Paul_Eluard&diff=prev&oldid=113828982

Event Timeline

matmarex raised the priority of this task from to Needs Triage.
matmarex updated the task description. (Show Details)
matmarex added subscribers: matmarex, NicoV.
Arlolra triaged this task as Medium priority.
Arlolra subscribed.

Change 220406 had a related patch set uploaded (by Arlolra):
T96673: Serialize new display space hacks

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

Change 220406 merged by jenkins-bot:
T96673: Serialize new display space hacks

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