diff --git a/lib/ve b/lib/ve index 6b85afc55e..ac24b50f9e 160000 --- a/lib/ve +++ b/lib/ve @@ -1 +1 @@ -Subproject commit 6b85afc55e840c3f3ea0c70a2a2f93e572b36d75 +Subproject commit ac24b50f9e37736f60b92e1d688b15efc05f685d diff --git a/modules/ve-mw/ce/nodes/ve.ce.MWEntityNode.js b/modules/ve-mw/ce/nodes/ve.ce.MWEntityNode.js index 04dfa5cf9f..5956250f32 100644 --- a/modules/ve-mw/ce/nodes/ve.ce.MWEntityNode.js +++ b/modules/ve-mw/ce/nodes/ve.ce.MWEntityNode.js @@ -48,11 +48,13 @@ ve.ce.MWEntityNode.static.name = 'mwEntity'; ve.ce.MWEntityNode.prototype.onUpdate = function () { var chr = this.model.getAttribute( 'character' ), - whitespaceHtmlChars = ve.ce.TextNode.whitespaceHtmlCharacters, + whitespaceHtmlChars = ve.ce.nodeFactory.lookup( 'text' ).static.whitespaceHtmlCharacters, significantWhitespace = this.getModel().getParent().hasSignificantWhitespace(); + if ( !significantWhitespace && Object.prototype.hasOwnProperty.call( whitespaceHtmlChars, chr ) ) { chr = whitespaceHtmlChars[ chr ]; } + this.$element.text( chr ); };