Index: trunk/parsers/wikidom/lib/es/es.ListBlock.js |
— | — | @@ -378,7 +378,7 @@ |
379 | 379 | 'style' : item.getStyle(), |
380 | 380 | 'items' : [] |
381 | 381 | } ); |
382 | | - lastStyle = item.getStyle(); |
| 382 | + //lastStyle = item.getStyle(); |
383 | 383 | } |
384 | 384 | } |
385 | 385 | |
— | — | @@ -412,6 +412,17 @@ |
413 | 413 | } |
414 | 414 | } |
415 | 415 | |
| 416 | + for( var i = stack.length; i > 1; i-- ) { |
| 417 | + if ( stack[stack.length - 2].items.length === 0 ) { |
| 418 | + stack[stack.length - 2].items.push( { |
| 419 | + 'lists' : [] |
| 420 | + } ); |
| 421 | + } else if( !stack[stack.length - 2].items[stack[stack.length - 2].items.length - 1].lists ) { |
| 422 | + stack[stack.length - 2].items[stack[stack.length - 2].items.length - 1].lists = []; |
| 423 | + } |
| 424 | + stack[stack.length - 2].items[stack[stack.length - 2].items.length - 1].lists.push( stack.pop() ); |
| 425 | + } |
| 426 | + |
416 | 427 | stack[0].type = 'list'; |
417 | 428 | return stack[0]; |
418 | 429 | }; |