mediawiki-extensions-Visual.../modules/ve/dm
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
..
annotations (bug 42140) Don't force spaces to underscores in internal links 2012-11-19 18:55:49 -08:00
nodes Flag pre nodes as having significant whitespace 2012-11-07 12:10:58 -08:00
ve.dm.Annotation.js Fix annotation object creation in SurfaceFragment 2012-10-24 16:47:04 -07:00
ve.dm.AnnotationFactory.js Standards: Fix global variables and pass JSHint. 2012-10-23 00:53:48 +02:00
ve.dm.BranchNode.js Remove 'internal' property from DM nodes 2012-10-24 16:47:14 -07:00
ve.dm.Converter.js (bug 41947) Propagate change markers when unwrapping generated nodes 2012-11-16 15:39:35 -08:00
ve.dm.Document.js Fixing Pre-Annotations 2012-11-19 17:09:08 -08:00
ve.dm.DocumentSynchronizer.js DocumentSynchronizer fix and cleanup 2012-10-25 11:02:58 -07:00
ve.dm.js New annotation API: Annotation and AnnotationFactory classes 2012-10-12 15:07:02 -07:00
ve.dm.LeafNode.js Remove 'internal' property from DM nodes 2012-10-24 16:47:14 -07:00
ve.dm.Node.js Flag pre nodes as having significant whitespace 2012-11-07 12:10:58 -08:00
ve.dm.NodeFactory.js Flag pre nodes as having significant whitespace 2012-11-07 12:10:58 -08:00
ve.dm.Surface.js Fixing Pre-Annotations 2012-11-19 17:09:08 -08:00
ve.dm.SurfaceFragment.js Fixing Pre-Annotations 2012-11-19 17:09:08 -08:00
ve.dm.Transaction.js Add change marking for Parsoid's benefit 2012-11-06 10:11:11 -08:00
ve.dm.TransactionProcessor.js Add change marking for Parsoid's benefit 2012-11-06 10:11:11 -08:00