Last modified: 2011-07-12 03:59:16 UTC
If the source is:
the null lines between [[Category:...]] and [[link]] are ignored, and it is same as:
ABC [[Category:...]] [[link]]
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?)
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?
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.
Thank you for all.
According to the parser code, this was done in response to bug 87.
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 >.>