Last modified: 2007-04-08 01:44:36 UTC
Non-breaking space in all its forms should be rendered as   (working with all browsers I'm aware of) or (issues with one old browser if there are two or more adjacent ). Under absolutely no circumstances can /   /   or the corresponding UTF-8 be rendered as mere SP, that causes havoc. This appears to be relatively new (2006-04-13 maybe?). I've tested it elsewhere with action=render, it's no skin issue.
Whatever it is, it's not everywhere.
I've tracked it down in http://en.wikipedia.org/wiki/User:Omniplex/5569 Theory: On a page with <pre>...</pre> later occurences of nbsp or #160 are translate to a space. An empty <pre></pre> doesn't have this side-effect. The example was in a discussion about another <pre> oddity at the bottom of: http://en.wikipedia.org/wiki/Wikipedia_talk:Qif_conditionals#m:ParserFunctions Something with <pre> is odd. And that's not new, I always (this year) avoided it, because it doesn't behave like a normal XHTML <pre>.
Please provide example input and output, clearly labeled.
Broken after <pre> </pre>: http://en.wikipedia.org/w/index.php?title=User:Omniplex/5569&oldid=48404599 Okay after <pre></pre>: http://en.wikipedia.org/w/index.php?title=User:Omniplex/5569&oldid=48404643 JFTR I added an example for the other <pre> oddity, where it affects text on the same line before <pre>: http://en.wikipedia.org/w/index.php?title=User:Omniplex/5569&oldid=48558136
Probably a bug in tidy. Can reproduce locally only with tidy enabled.
*** Bug 5717 has been marked as a duplicate of this bug. ***
This hits me about once per day, and there's absolutely no workaround, therefore I mark it as "serious". It's easy to avoid all <pre> and Wiki "space in column one" on a new page, but a PITA on old pages if I want to work as designed. It breaks my signature. It breaks templates like Tlx and Tlsp. It breaks dummy table cells.
*** Bug 6339 has been marked as a duplicate of this bug. ***
*** Bug 6430 has been marked as a duplicate of this bug. ***
*** Bug 6725 has been marked as a duplicate of this bug. ***
Created attachment 2122 [details] test case to reproduce the problem with tidy on the command line I can verify the bug (directly on the command line) with the tidy version "HTML Tidy for Linux/x86 released on 1st March 2004": After the <pre>-block, all are replaced by regular space. This is fixed in newer versions of tidy: the problem is gone in version "HTML Tidy for Linux/x86 released on 1 September 2005".
This breaks <poem> tags too (see [[s:en:Help:Editing poetry]]).
This is because Tidy hasn't been updated, not a MediaWiki problem. MediaWiki -> Wikimedia.
This bug breaks pages and templates on Dutch WP too: [[s:nl:Gebruiker:Erik Baas/5569]]
The problem seems to have disappeared; see http://nl.wikipedia.org/wiki/Gebruiker:Erik_Baas/5569
Should have been fixed by Tim upgrading Tidy.