Better text parsing

This commit is contained in:
syuilo 2018-05-07 17:19:00 +09:00
parent d1fd3adcc9
commit 54b46c5d00

View File

@ -64,7 +64,7 @@ function parse(tag, html: string): string {
break; break;
case 'p': case 'p':
text += '\n'; text += '\n\n';
if (node.childNodes) { if (node.childNodes) {
node.childNodes.forEach(n => analyze(n)); node.childNodes.forEach(n => analyze(n));
} }