Last modified: 2011-07-12 03:59:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T9358, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7358 - Null lines between [[Category:...]] and [[link]] are ignored
Null lines between [[Category:...]] and [[link]] are ignored
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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


[[link]]
(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.


Navigation
Links