mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +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 | ||
test | ||
ui | ||
ve.BranchNode.js | ||
ve.debug.js | ||
ve.Document.js | ||
ve.Element.js | ||
ve.EventEmitter.js | ||
ve.Factory.js | ||
ve.js | ||
ve.LeafNode.js | ||
ve.NamedClassFactory.js | ||
ve.Node.js | ||
ve.Range.js | ||
ve.Registry.js |