Last modified: 2011-04-14 20:41:28 UTC
When you include a includable Special Page (e.g. {{Special:Example}}), parser adds a blank paragraph with a <br /> at the begining. This is made in includes/Parser.php line 2170: $output .= $paragraphStack.'<br />'; I think that it's a bug. Thank you! ;)
Really adds: <p> <br /> </p>
I can confirm that, try something like: abc{{Special:Editcount/Catrope}}def (Catrope being my username), which yields: abc 2,717def
The paragraph is due to the parser, the line break is (of course) coming from the special page inclusion code. Special page output is a block, and it could be considered appropriate to ensure there's a line break after it. In the case of an edit count, one should use a parser function to obtain the information.
I can understand that output is a block. But it adds a blank line when it contains several blocks.
The work-around for this used to be: abc{{padleft:{{Special:Editcount/Catrope}}}}def Not sure if that still works or is still needed.
This still exists and is particularly annoying with Special:Editcount, the above method using {{padleft:}} doesn't seem to help.
*** Bug 23066 has been marked as a duplicate of this bug. ***
conrad suggested that removing one of the two \n in Parser.php:3082 would solve the problem, however he was unsure if there are any side-effects.
Created attachment 7271 [details] patch patch, including fixes for parser tests.
*** Bug 14607 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 12974 ***