Page MenuHomePhabricator

Feature request: Treat   as normal space in [[...]]
Closed, ResolvedPublic

Description

Author: per.starback

Description:
Non breakable spaces are nice to get better formatted articles.

I suggest non breakable spaces should be treated as normal spaces inside [[...]]
so that I could write things like [[World War I]] and get a link to "World
War I" instead of having to write [[World War I|World War I]] to get that
result.

It's nice to avoid a linebreak in that position, even though it's perhaps not a
very grave error. In other languages there are worse instances. When searching
for earlier suggestions about this I found one (that I will now remove) at
http://meta.wikimedia.org/wiki/MediaWiki_feature_request_and_bug_report_discussion/Archive
that in particular mentioned space before interpunction in a French example such as
[[Quelle utilisation pour www.wikipedia.org ?|Quelle utilisation pour
www.wikipedia.org ?]].


Version: unspecified
Severity: enhancement

Details

Reference
bz7253

Event Timeline

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

ayg wrote:

What happens for page names that actually have a literal non-breaking space in
them? They would become inaccessible (note bug 6790)? Requiring literal nbsps
(which generally look identical to normal spaces) somewhere, or indeed arguably
treating them different from   in the first place, is probably a bad idea.

Non-breaking space _shouldn't_ actually be allowed in titles, since it can't be
typed or saved in article text generally. Any such title is inherently broken,
and can be cleaned up by script after the fix.

Works now, but I do not know since which revision for reference.