From 921f2faac8f248c79b810ffb918aff8277af2e13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 25 Jun 2014 13:49:28 +0200 Subject: [PATCH] wlxml: lists take context root into account --- src/wlxml/extensions/list/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wlxml/extensions/list/list.js b/src/wlxml/extensions/list/list.js index 3ee65d4..7731616 100644 --- a/src/wlxml/extensions/list/list.js +++ b/src/wlxml/extensions/list/list.js @@ -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) { -- 2.20.1