mediawiki-extensions-Visual.../modules/ve/dm/annotations
Catrope fda2e6c1b5 (bug 42140) Don't force spaces to underscores in internal links
MWInternalLinkAnnotation was normalizing spaces to underscores. This is
bad. Instead, we now do the following:
* Normalize underscores to spaces for display purposes
* Store the original title without underscore/space mangling
* If the user didn't change the title (display title === original title
  with s/_/ /g), use the original title. Otherwise use the user's title
  verbatim, without normalizing either underscores or spaces.

Also, per a conversation with Gabriel, we now only restore hrefPrefix
when we're also restoring origTitle, otherwise Parsoid will barf.

Change-Id: Ia74a493b2bce96c9345b60ed692eeb2e43ebceff
2012-11-19 18:55:49 -08:00
..
ve.dm.LinkAnnotation.js Whitespace and comment cleanup for dm annotation classes 2012-10-17 12:35:28 -07:00
ve.dm.MWExternalLinkAnnotation.js Whitespace and comment cleanup for dm annotation classes 2012-10-17 12:35:28 -07:00
ve.dm.MWInternalLinkAnnotation.js (bug 42140) Don't force spaces to underscores in internal links 2012-11-19 18:55:49 -08:00
ve.dm.TextStyleAnnotation.js Whitespace and comment cleanup for dm annotation classes 2012-10-17 12:35:28 -07:00