Page MenuHomePhabricator

Extra whitespace is lost before category links in languages with prefix expansion
Open, LowPublic

Description

See the page http://ln.wikipedia.org/wiki/Et%C9%94%C9%9Bl%C9%9B
The wikicode '* [[Nzeté]] tǒ mweté' is rendered as 'Nzeté tǒmweté'.


Version: unspecified
Severity: normal
Platform: PC

Details

Reference
bz9918

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:42 PM
bzimport set Reference to bz9918.
bzimport added a subscriber: Unknown Object (MLST).

Changing summary to clarify. Problem is linked to prefix expansion; probably an
extra trim() call is going on and removing the whitespace before the
'space-before-the-link' chunk.

Can confirm behavior set for Lingala or Arabic, with this sample input:

a b
[[Category:X]]
[[Category:X]]

Recommend adding a parser test case (the language-set option should work now, I
think...) and some poor soul has to dig in the parser. :D