From 61dfc642406900ea1d4b2751925329cd69a36a87 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 27 Mar 2018 17:10:41 +0200 Subject: [PATCH 1/1] some other minor changes from milpeer --- src/editor/modules/documentHistory/templates/main.html | 2 +- src/wlxml/wlxml.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/editor/modules/documentHistory/templates/main.html b/src/editor/modules/documentHistory/templates/main.html index 83cd627..0abdab6 100644 --- a/src/editor/modules/documentHistory/templates/main.html +++ b/src/editor/modules/documentHistory/templates/main.html @@ -8,4 +8,4 @@
-
\ No newline at end of file +
\ No newline at end of file diff --git a/src/wlxml/wlxml.js b/src/wlxml/wlxml.js index ce0ac0a..a5a87d2 100644 --- a/src/wlxml/wlxml.js +++ b/src/wlxml/wlxml.js @@ -255,9 +255,7 @@ $.extend(WLXMLDocument.prototype, { elParent = el.parent(), hasSpanParent = elParent.prop('tagName') === 'SPAN', hasSpanBefore = el.prev().length && $(el.prev()).prop('tagName') === 'SPAN', - hasSpanAfter = el.next().length && $(el.next()).prop('tagName') === 'SPAN', - onlyChild = el.is(':only-child'); - + hasSpanAfter = el.next().length && $(el.next()).prop('tagName') === 'SPAN'; var addInfo = function(toAdd, where, transformed, original) { var parentContents = elParent.contents(), -- 2.20.1