Last modified: 2011-07-12 03:59:16 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 7358 - Null lines between [[Category:...]] and [[link]] are ignored
Null lines between [[Category:...]] and [[link]] are ignored
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-09-18 06:35 UTC by
Modified: 2011-07-12 03:59 UTC (History)
1 user (show)

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


Description 2006-09-18 06:35:17 UTC
If the source is:
ABC [[Category:...]]

(source end)
the null lines between [[Category:...]] and [[link]] are ignored, and it is same as:
ABC [[Category:...]] [[link]]
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-09-19 00:36:26 UTC
Any line breaks immediately preceding a category or interlanguage link are
compressed to a space.  This is presumably to avoid excessive whitespace at the
end of articles, since it's conventional to place them all there.  Maybe it
would be best to just strip any whitespace that isn't followed by rendered
content, rather than assuming category/interlanguage will be at the end?  (Or is
that not the only reason for this?)
Comment 2 2006-09-19 01:33:47 UTC
Do you mean it is deliberately that the line breakes between a "category" and a
"link" or 2 "category"'s are compressed to a space? 
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-09-19 02:06:15 UTC
As far as I can determine from a quick sandbox edit, *any* whitespace
immediately preceding a category/interlanguage link is compressed.  It doesn't
seem to have to be followed by a link.  And yes, this is probably deliberate,
for the reason I mention, but it's not necessarily the best decision.
Comment 4 2006-09-19 02:27:25 UTC
Thank you for all.
Comment 5 Rob Church 2007-01-08 14:52:45 UTC
According to the parser code, this was done in response to bug 87.
Comment 6 Dan Collins 2011-07-12 03:59:16 UTC
The consensus appears to be that this is invalid, and that the behavior is intentional to avoid other ugliness. For those interested, any whitespace around (both sides) a category link is still stripped, but that's why they go at the bottom of articles >.>

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