wlxml: fix - keep list class for both lists created from extracting items
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 17 Feb 2014 14:59:38 +0000 (15:59 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Sat, 12 Apr 2014 21:58:44 +0000 (23:58 +0200)
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) {