wlxml: fix - keep list class for both lists created from extracting items
[fnpeditor.git] / src / wlxml / extensions / list / list.js
index 2487107..2a996ac 100644 (file)
@@ -138,7 +138,7 @@ extension.document.transformations.extractItems = {
                 }
                 reference = item;
             });
-            var secondList = params.item1.document.createDocumentNode({tagName: 'div', attrs: {'class':'list'}}),
+            var secondList = params.item1.document.createDocumentNode({tagName: 'div', attrs: {'class': list.getClass() || 'list'}}),
                 toAdd = secondList;
             
             if(listIsNested) {