Page MenuHomePhabricator

URL with hyphen in Infobox displays improperly with unintended break
Closed, InvalidPublic

Description

Author: kentucho

Description:
In the Infobox under this entry, a link to Jane Wyman's official website is given.

http://www.jane-wyman.com

The display of the URL breaks at the hyphen, putting the URL on two lines, but also displays a corrupted outside link icon after the URL. The icon looks like it's either broken in two pieces or is missing a portion of it (perhaps obscured by some white space). The link itself is functional, in that it does take you to the correct page. The icon part is not functional as a link.

Without the dash, the URL and icon display perfectly (but, of course, won't take you to the correct site).


Version: unspecified
Severity: minor
URL: http://en.wikipedia.org/wiki/Jane_Wyman

Details

Reference
bz11312

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:57 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz11312.
bzimport added a subscriber: Unknown Object (MLST).

Some browsers do line breaks at "-" while others don't.

If you wish to enforce non-breaking, you can wrap it in <span style="white-space: nowrap">...</span> or equivalent template.

EN.WP.ST47 wrote:

This is a difference in various browsers which is outside our control. We certainly don't want to make links white-space: nowrap by default, so Brion's solution works fine as a workaround where the problem exists. Not a bug on our side, so closing as invalid.