Cite.php: a space appears after each reference marker

Bug #322695 reported by Yuri Khan
2
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.0-2ubuntu0.1, mediawiki-extensions 1.4

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.

Revision history for this message
Thorsten Glaser (mirabilos) wrote :

Maverick has 2.2 which has Cite.php r47190

If this does not fix the bug, please reopen.

Changed in mediawiki-extensions (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.