description:'8 levels of indents, newlines and attributes',
html:'<html><body><ul class="list-indent1"><li>indent line 1</li></ul><br/><ul class="list-indent1"><li>indent line 2</li><li><ul class="list-indent2"><li>indent2 line 1</li></ul></li></ul><br/><ul class="list-indent1"><li><ul class="list-indent2"><li><ul class="list-indent3"><li><ul class="list-indent4"><li><span class="b s i u"><b><i><s><u>indent4 line 2 bisu</u></s></i></b></span></li><li><span class="b s"><b><s>indent4 line 2 bs</s></b></span></li><li><span class="u"><u>indent4 line 2 u</u></span><span class="u i s"><i><s><u>uis</u></s></i></span></li><li><ul class="list-indent5"><li><ul class="list-indent6"><li><ul class="list-indent7"><li><ul class="list-indent8"><li><span class="">foo</span></li><li><span class="b s"><b><s>foobar bs</b></s></span></li></ul></li></ul></li></ul></li></ul></li><li><ul class="list-indent5"><li>foobar</li></ul></li></ul></li></ul></li></ul></body></html>',
expectedLineAttribs:[],
expectedText:['*indent line 1','*indent line 1']
},
bulletsAndEmptyLines:{
disabled:true,
description:'Bullet lists that contain empty lines',
html:'<html><body><ul class="list-bullet1"><li>bullet line 1</li><br/></ul><br/><ul class="list-bullet1"><li>bullet line 2</li><br/><li><ul class="list-bullet2"><li>bullet2 line 1</li></ul></li></ul><br/><br/><ul class="list-bullet1"><li><ul class="list-bullet2"><li>bullet2 line 2</li><li><br/></li></ul></li></ul></body></html>',
expectedLineAttribs:[],
expectedText:['*bullet line 1','','*bullet line 2','','*bullet2 line 1','','','*bullet2 line 2','']
},
indentsAndEmptyLines:{
disabled:true,
description:'Indented lines that contain empty lines',
html:'<html><body><ul class="list-indent1"><li>indented line 1</li><br/></ul><br/><ul class="list-indent1"><li>indented line 2</li><br/><li><ul class="list-indent2"><li>indent2 line 1</li></ul></li></ul><br/><br/><ul class="list-indent1"><li><ul class="list-indent2"><li>indent2 line 2</li><li><br/></li></ul></li></ul></body></html>',
expectedLineAttribs:[],
expectedText:['indented line 1','','','indented line 2','','indent2 line 1']
},
bulletsAndNonBulletLines:{
disabled:true,
description:'Bullet lists that contain not bullet lines',
html:'<html><body><ul class="list-bullet1"><li>bullet line 1</li>not bullet</ul>not bullet<ul class="list-bullet1"><li>bullet line 2</li><br/><ul class="list-bullet2"><li>bullet2 line 1</li></ul></ul></body></html>',
expectedLineAttribs:[],
expectedText:[]
},
indentsAndNonIndentedLines:{
disabled:true,
description:'Indented lines that contain non indented lines',
html:'<html><body><ul class="list-indent1"><li>indent line 1</li>not indent</ul>not indent<ul class="list-indent1"><li>indent line 2</li><br/><li><ul class="list-indent2"><li>indent2 line 1</li></ul></li></ul></body></html>',
expectedLineAttribs:[],
expectedText:['*indent line 1','not indent','not indent','*indent line 2','','*indent2 line 1']
},
olWithNonDefaultStart:{
disabled:true,
description:'An ordered list that does not start with 1',
description:'Styling applied as separate tags and span attributes',
html:'<html><body>line<br/><span class="b s i u"><b><i><s><u>bold strikethrough italic underline</u></s></i></b></span><span> no style</span> no style<br></body></html>',
expectedLineAttribs:['+4','*0*1*2*3+z+i'],
expectedText:['line','bold strikethrough italic underline no style no style']
},
stylingWithSpanAndTagsWithoutAttributes:{
description:'Styling applied as separate tags inside a span',
html:'<html><body>line<br/><span><b><i><s><u>bold strikethrough italic underline</u></s></i></b></span><span> no style</span> no style<br></body></html>',
expectedLineAttribs:['+4','*0*1*2*3+z+i'],
expectedText:['line','bold strikethrough italic underline no style no style']
},
stylingWithAttributesWithoutTags:{
disabled:true,
description:'Styling applied as span attributes',
html:'<html><body>line<br/><span class="b s i u">bold strikethrough italic underline</span><span> no style</span> no style<br></body></html>',
expectedLineAttribs:['+4','*0*1*2*3+z+i'],
expectedText:['line','bold strikethrough italic underline no style no style']
},
stylingWithTagsWithoutAttributes:{
description:'Styling applied as separate tags',
html:'<html><body>line<br/><b><i><s><u>bold strikethrough italic underline</u></s></i></b><span> no style</span> no style<br></body></html>',
expectedLineAttribs:['+4','*0*1*2*3+z+i'],
expectedText:['line','bold strikethrough italic underline no style no style']
},
stylingWithFontAttributes:{
disabled:true,
description:"Styling applied as font-style",
html:'<html><body>line<br/><span style="font-style:italic"><span style="font-style:bold"><span style="font-style:underline"><span style="font-style:strikethrough">bold strikethrough italic underline</span></span></span></span><span> no style</span> no style</body></html>',
expectedLineAttribs:[],
expectedText:['abc']
},
dontDeleteSpaceInsideElements:{//BEGINNING AAND END
description:'Preserve spaces on the beginning and end of a element',
html:'<html><body>Need<span> more </span>space<i>s </i>!<br></body></html>',
expectedLineAttribs:['+f*0+2+1'],
expectedText:['Need more spaces !']
},
collapseSpacesInsideElements:{
description:'Preserve only on space when multiple are present',
html:'<html><body>Need <span> more </span> space<i> s </i> !<br></body></html>',
expectedLineAttribs:['+f*0'],
expectedText:['Need more space s !'],
disabled:true
},
collapseSpacesAcrossNewlines:{
disabled:true,
description:'Newlines and multiple spaces across newlines should be collapsed',
html:`
<html><body>Need
<span>more</span>
space
<i>s</i>
!<br></body></html>`,
expectedLineAttribs:[],
expectedText:[]
},
multipleNewLinesAtBeginning:{
disabled:true,
description:'Multiple new lines at the beginning should be preserved',