Last modified: 2009-06-23 01:49:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21290, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19290 - French spacing matches where it shouldn't
French spacing matches where it shouldn't
Status: RESOLVED DUPLICATE of bug 3158
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.16.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-19 07:01 UTC by Tim Starling
Modified: 2009-06-23 01:49 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tim Starling 2009-06-19 07:01:09 UTC
The French spacing parser feature, which converts a plain space before punctuation into a non-breaking space, is naively implemented and has undesirable side effects. For instance, the following wikitext:

== !!! READ THIS FIRST !!! ==

is rendered as:

...<span class="mw-headline">&nbsp;!!! READ THIS FIRST&nbsp;!!! </span>...

The present regex matches at the start of HTML elements, as shown, and could also match inside attributes. The solution is probably to either move it into doMagicLinks(), or to implement something like what is there: a method for doing regex substitution on the plain text component of HTML and not on the attributes.

Reported on IRC by MZMcBride.
Comment 1 Brion Vibber 2009-06-23 01:49:06 UTC

*** This bug has been marked as a duplicate of bug 3158 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links