Поправки

This commit is contained in:
Book Pauk
2019-01-26 09:16:45 +07:00
parent d94c689232
commit fdac4729a7

View File

@@ -259,12 +259,13 @@ class BookConverter {
}; };
const closeTag = (name) => { const closeTag = (name) => {
if (node._n == name && node._p) if (node._n == name && node._p) {
node = node._p; node = node._p;
}
}; };
const growParagraph = (text) => { const growParagraph = (text) => {
if (node._a.length == 0) if (node._n == 'p' && node._a.length == 0)
text = text.trimLeft(); text = text.trimLeft();
node._a.push({_t: text}); node._a.push({_t: text});
}; };