wlxml: lists take context root into account
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 25 Jun 2014 11:49:28 +0000 (13:49 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 14 Aug 2014 14:26:13 +0000 (16:26 +0200)
src/wlxml/extensions/list/list.js

index 3ee65d4..7731616 100644 (file)
@@ -111,7 +111,7 @@ extension.document.transformations.extractItems = {
             extractedItems = [],
             succeedingItems = [],
             items = list.contents(),
-            listIsNested = list.parent().is('item');
+            listIsNested = list.parent().is('item') && !list.parent().isContextRoot();
 
         
         items.forEach(function(item, idx) {