Cite.php: a space appears after each reference marker
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mediawiki-extensions (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Version info: Ubuntu Intrepid 8.10, MediaWiki 1:1.12.
When a <ref></ref> tag is used in a MediaWiki article to add a footnote, an extraneous space appears after the footnote marker. This may cause the following punctuation to be line-wrapped incorrectly.
To reproduce:
* Create and save a page containing the following markup:
==
Lorem ipsum<ref>dolor sit</ref>amet.
<references/>
==
Expected:
* In the displayed page, the footnote marker is immediately followed by the word 'amet'.
Observed:
* In the displayed page, the footnote marker appears to be followed by a space and then the word 'amet'.
* In the generated HTML, the </sup> closing the footnote marker is followed by an HTML comment containing the NewPP limit report, then by a newline, then the word 'amet'.
Cause:
* The extension Cite.php as packaged is an obsolete version. Specifically, it uses a deprecated method of parsing the contents of <ref>…</ref> that has a side effect of outputting a preprocessor limits report comment followed by a newline, after each footnote marker. This newline is then interpreted by browsers as a space.
Workaround:
* Install the Cite.php revision 33026 (for MediaWiki 1.12) from the MediaWiki site.
Maverick has 2.2 which has Cite.php r47190
If this does not fix the bug, please reopen.