Page MenuHomePhabricator

Single-bracketed stuff has a space inserted after it
Closed, ResolvedPublic

Description

Author: timwi

Description:
BUG MIGRATED FROM SOURCEFORGE
http://sourceforge.net/tracker/index.php?func=detail&aid=999022&group_id=34373&atid=411192
Originally submitted by Brian Kendig (bkendig) 2004-07-27 23:40

In Wikipedia, a single-bracketed link in an article will incorrectly
appear with a space inserted after it in the article text. See 'http://
en.wikipedia.org/wiki/Windows_XP', which has lots of single-
bracketed links. Here are some examples:

This [http://foo.com/ link in single brackets], blah blah

becomes: This link in single brackets , blah blah

(This footnote [http://foo.com/])

becomes: (This footnote [1] )

Blah blah [http://foo.com/]; blah blah

becomes: Blah blah [2] ; blah blah
  • Additional comments ------------------------

Date: 2004-08-02 01:27
Sender: SF user kaarethor

This problem appears to have been fixed in cvs.

Date: 2004-08-05 20:41
Sender: SF user jeluf

This is caused by tidy. If wgUseTidy is "false", the page is
rendered correctly.


Version: unspecified
Severity: normal

Details

Reference
bz32

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:44 PM
bzimport set Reference to bz32.
bzimport added a subscriber: Unknown Object (MLST).

mrnobo1024 wrote:

*** Bug 712 has been marked as a duplicate of this bug. ***

timwi wrote:

This is already fixed in newest CVS.

timwi wrote:

Actually, it's also fixed in REL1_3 CVS, it seems.

pogonyshev wrote:

It is not fixed. I can observe this bug even after the recent engine update.

jeluf wrote:

I opened a ticket for tidy, and this is the response:

This is by design and you should not do that, see the last
paragraph of http://www.w3.org/TR/html4/struct/text.html#h-
9.1 -- you can use different means to achieve what you
want, you can use   instead of a space, for example.

https://sourceforge.net/tracker/?func=detail&atid=390966&aid=1094093&group_id=27659

So I added a   where the space used to be.

wikimedia-bugzilla wrote:

That sf.net bug seems to me to be a different issue. Is this fixed or not?

zigger wrote:

(In reply to comment #6)
The three test cases are working correctly on en.wikipedia.org and
meta.wikimedia.org (v1.4.5) and test.leuksman.com (v1.5alpha2). If this is
broken elsewhere, please provide details.