@@ -77,7 +77,7 @@ showdown.subParser('lists', function (text, options, globals) {
7777 item = showdown . subParser ( 'spanGamut' ) ( item , options , globals ) ;
7878 }
7979 }
80- item = '\n <li' + bulletStyle + '>' + item + '</li>\n' ;
80+ item = '<li' + bulletStyle + '>' + item + '</li>\n' ;
8181 return item ;
8282 } ) ;
8383
@@ -112,7 +112,7 @@ showdown.subParser('lists', function (text, options, globals) {
112112 var pos = txt . search ( counterRxg ) ;
113113 if ( pos !== - 1 ) {
114114 // slice
115- result += '\n<' + listType + '>' + processListItems ( txt . slice ( 0 , pos ) , ! ! trimTrailing ) + '</' + listType + '>\n' ;
115+ result += '\n<' + listType + '>\n ' + processListItems ( txt . slice ( 0 , pos ) , ! ! trimTrailing ) + '</' + listType + '>\n' ;
116116
117117 // invert counterType and listType
118118 listType = ( listType === 'ul' ) ? 'ol' : 'ul' ;
@@ -121,14 +121,14 @@ showdown.subParser('lists', function (text, options, globals) {
121121 //recurse
122122 parseCL ( txt . slice ( pos ) ) ;
123123 } else {
124- result += '\n<' + listType + '>' + processListItems ( txt , ! ! trimTrailing ) + '</' + listType + '>\n' ;
124+ result += '\n<' + listType + '>\n ' + processListItems ( txt , ! ! trimTrailing ) + '</' + listType + '>\n' ;
125125 }
126126 } ) ( list ) ;
127127 for ( var i = 0 ; i < subLists . length ; ++ i ) {
128128
129129 }
130130 } else {
131- result = '\n<' + listType + '>' + processListItems ( list , ! ! trimTrailing ) + '</' + listType + '>\n' ;
131+ result = '\n<' + listType + '>\n ' + processListItems ( list , ! ! trimTrailing ) + '</' + listType + '>\n' ;
132132 }
133133
134134 return result ;
0 commit comments