From: Jan Szejko Date: Tue, 27 Mar 2018 15:10:41 +0000 (+0200) Subject: some other minor changes from milpeer X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/61dfc642406900ea1d4b2751925329cd69a36a87?ds=inline some other minor changes from milpeer --- 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(),