Removed outdated backslashes and strange newlines within elements
parent
6eb0080ac5
commit
2bd2348cc0
|
@ -246,32 +246,32 @@ function getHTMLFromAtext(pad, atext) {
|
||||||
|
|
||||||
if (whichList >= lists.length) {
|
if (whichList >= lists.length) {
|
||||||
lists.push([line.listLevel, line.listTypeName]);
|
lists.push([line.listLevel, line.listTypeName]);
|
||||||
pieces.push('<ul><li>', lineContent || '<br/>');
|
pieces.push('<ul><li>', lineContent || '<br>');
|
||||||
}
|
}
|
||||||
else if (whichList == -1) {
|
else if (whichList == -1) {
|
||||||
if (line.text) {
|
if (line.text) {
|
||||||
// non-blank line, end all lists
|
// non-blank line, end all lists
|
||||||
pieces.push(new Array(lists.length+1).join('</li></ul\n>'));
|
pieces.push(new Array(lists.length+1).join('</li></ul\n>'));
|
||||||
lists.length = 0;
|
lists.length = 0;
|
||||||
pieces.push(lineContent, '<br\n/>');
|
pieces.push(lineContent, '<br>');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
pieces.push('<br/><br\n/>');
|
pieces.push('<br><br>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
while (whichList < lists.length-1) {
|
while (whichList < lists.length-1) {
|
||||||
pieces.push('</li></ul\n>');
|
pieces.push('</li></ul>');
|
||||||
lists.length--;
|
lists.length--;
|
||||||
}
|
}
|
||||||
pieces.push('</li\n><li>', lineContent || '<br/>');
|
pieces.push('</li><li>', lineContent || '<br>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
pieces.push(lineContent, '<br\n/>');
|
pieces.push(lineContent, '<br>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pieces.push(new Array(lists.length+1).join('</li></ul\n>'));
|
pieces.push(new Array(lists.length+1).join('</li></ul>'));
|
||||||
|
|
||||||
return pieces.join('');
|
return pieces.join('');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue