mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
4041d3f342
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 |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
ui | ||
example.png | ||
index.php | ||
ve.BranchNode.test.js | ||
ve.Document.test.js | ||
ve.Element.test.js | ||
ve.Factory.test.js | ||
ve.LeafNode.test.js | ||
ve.Node.test.js | ||
ve.qunit.js | ||
ve.Range.test.js | ||
ve.test.js | ||
ve.test.utils.js |