Last modified: 2010-05-15 15:41:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8381 - Don't remove whitespace before [[Category:...]]
Don't remove whitespace before [[Category:...]]
Status: RESOLVED DUPLICATE of bug 17988
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: 11908 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2006-12-25 17:30 UTC by Dan Jacobson
Modified: 2010-05-15 15:41 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Dan Jacobson 2006-12-25 17:30:22 UTC
Alas [[Category:Whatever]] eats nearby whitespace.
A shame, as it doesn't need to but it does.
Why can't it just mind its own business, and not tamper with
preceding and following whitespace, if indeed any.

What's the big deal you ask? Well, templates like
have no way of restoring those surrounding whitespace conditions,
even with the <noinclude> tacked on before any newline.

Users might start thinking they must now pass the surrounding
whitespace into the template just to protect it.

Same with just [[:Category:{{{1}}}|{{{1}}}]], only a following space
is preserved, not a preceding one.

Would the UNIX m4 preprocessor gobble whitespace like [[Category... ?
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-12-25 18:55:13 UTC
I think this is so that you don't have ugly whitespace at the end of an article,
but if that were the only reason, why don't we just strip whitespace from the
end of the article instead of from before categories?  Maybe I'm wrong.
Comment 2 Jelte (WebBoy) 2006-12-26 12:37:28 UTC
Try using
instead of
Comment 3 Jamie Hari 2007-07-31 03:55:10 UTC
If WebBoy's suggestion fixed it, I suppose we can close this bug.
Comment 4 Brion Vibber 2007-12-05 20:29:05 UTC
*** Bug 11908 has been marked as a duplicate of this bug. ***
Comment 5 Dan Jacobson 2009-05-11 22:21:14 UTC

*** This bug has been marked as a duplicate of bug 17988 ***

Note You need to log in before you can comment on or make changes to this bug.