Public bug reported:

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.

** Affects: mediawiki-extensions (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Cite.php: a space appears after each reference marker
https://bugs.launchpad.net/bugs/322695
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to