Two-character fix
Parser.php contains a strange construct (line 1703):
$s = rtrim($s . "\n");
I would guess the added newline is just a waste of time/memory, since it gets trimmed again immediately. I believe the original author (see r8309) intended to write a comma instead of a dot.
And indeed, the line should IMHO read
$s = rtrim($s, "\n");
because at the current version, spaces before category links are ignored, so that wikitext like “Lorem [[Category:Foo]]ipsum]]” ends up showing “Loremipsum”, not “Lorem ipsum” one might expect (see the attached URL).
Not that it would be any major bug ;-)
Version: 1.21.x
Severity: trivial
URL: http://test.wikipedia.org/wiki/Typo_in_rtrim