Page MenuHomePhabricator

Words in the wikitext get merged into the every second category when linkprefix is turned on.
Closed, ResolvedPublic

Description

Author: avarab

Description:
Given input like the following when $wgContLang->linkPrefixExtension() returns a
true value:

"""
word

[[Category:Category1]]
[[Category:Category2]]
[[Category:Category3]]
[[Category:Category4]]
[[Category:Category5]]
[[Category:Category6]]
"""

The following output will be produced:
"""
Categories: Category1 | wordCategory2 | Category3 | wordCategory4 | Category5 |
wordCategory6
"""

This can be fixed by removing line 1432 of Parser.php ($s = rtrim($s . "\n"); #
bug 87) but of course that produced other problems.


Version: 1.6.x
Severity: trivial

Details

Reference
bz4053

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:58 PM
bzimport set Reference to bz4053.
bzimport added a subscriber: Unknown Object (MLST).

Looks fixed using:


word[[Category:Category1]]
[[Category:Category2]]
[[Category:Category3]]
[[Category:Category4]]
[[Category:Category5]]

[[Category:Category6]]