mediawiki-extensions-Visual.../modules/ve/test/dm
Roan Kattouw 4041d3f342 Fix the newline bunny-hop bug
We would dirty-diff "</span>\n<!-- comment -->\n<span>" to
"</span>\n\n<!-- comment --><span>", i.e. the second newline made
a bunny-hop to the left over the comment.

The actual bug turned out to involve a double bunny-hop, with
"</span> <!-- comment -->\n<span>" turning into
"</span>\n <!--comment --><span>", i.e. the newline bunny-hops
both the comment and the space.

This happened because outputWrappedMetaItems() didn't take
wrappedWhitespace into account when restoring meta items and
associated whitespace. I hacked a check for wrappedWhitespace into it,
but we should really just rewrite this pile of hacks into a unified
system for queuing and processing both whitespace and metadata.

Change-Id: I4375f4c07983ffec6877d0371aeaa9bf6e65fd6e
2013-07-26 16:24:27 -07:00
..
lineardata Code style fix: (X) -> ( X ) 2013-06-24 18:51:59 +01:00
nodes The great directory split of 2013 2013-07-02 20:51:38 -07:00
ve.dm.AnnotationSet.test.js Make all annotations additive 2013-07-05 21:01:20 +00:00
ve.dm.BranchNode.test.js Kill getOffsetFromNode() with fire 2013-05-09 17:26:22 -07:00
ve.dm.Converter.test.js The great directory split of 2013 2013-07-02 20:51:38 -07:00
ve.dm.Document.test.js Refactor selectNodes tests 2013-06-17 20:08:08 +01:00
ve.dm.DocumentSynchronizer.test.js Code style fixes 2013-05-06 12:36:52 +01:00
ve.dm.example.js Fix the newline bunny-hop bug 2013-07-26 16:24:27 -07:00
ve.dm.IndexValueStore.test.js Preserve location of reference body within key 2013-06-10 02:54:26 +00:00
ve.dm.InternalList.test.js The great directory split of 2013 2013-07-02 20:51:38 -07:00
ve.dm.LeafNode.test.js
ve.dm.LinearData.test.js Code style fix: (X) -> ( X ) 2013-06-24 18:51:59 +01:00
ve.dm.MetaList.test.js jshint: Fix trailing comma 2013-06-05 13:00:49 +02:00
ve.dm.Model.test.js jshint: Fix trailing comma 2013-06-05 13:00:49 +02:00
ve.dm.ModelRegistry.test.js Fix ModelRegistry bugs 2013-04-08 18:05:34 -07:00
ve.dm.Node.test.js jshint: Fix trailing comma 2013-06-05 13:00:49 +02:00
ve.dm.NodeFactory.test.js
ve.dm.Surface.test.js Only undo on MWMetaDialog close if small stack is non-empty 2013-06-18 16:55:03 +01:00
ve.dm.SurfaceFragment.test.js The great directory split of 2013 2013-07-02 20:51:38 -07:00
ve.dm.Transaction.test.js Merge "Revert "ve.dm.Transaction: Implement newFromDocumentInsertion"" 2013-06-25 22:14:15 +00:00
ve.dm.TransactionProcessor.test.js Actually use op.retainMetadata in structural replace mode 2013-07-12 15:57:26 -07:00