Fixed wikitext serailizer - extra newlines should be after the list not the list item

This commit is contained in:
Trevor Parscal 2011-12-07 23:35:11 +00:00
parent f42915ac0f
commit f9fd3b1db2

View file

@ -99,10 +99,10 @@ es.WikitextSerializer.prototype.list = function( node ) {
var childNode = node.children[i]; var childNode = node.children[i];
lines.push( lines.push(
convertStyles( childNode.attributes.styles ) + ' ' + convertStyles( childNode.attributes.styles ) + ' ' +
this.document( childNode ) + '\n' this.document( childNode )
); );
} }
return lines.join( '\n' ); return lines.join( '\n' ) + '\n';
}; };
es.WikitextSerializer.prototype.table = function( node ) { es.WikitextSerializer.prototype.table = function( node ) {