Мелкая поправка

This commit is contained in:
Book Pauk
2019-02-23 23:38:19 +07:00
parent e99a42b7af
commit 06221a474b

View File

@@ -270,8 +270,12 @@ class BookConverter {
};
const growParagraph = (text) => {
if (!node._p)
openTag('p');
if (!node._p) {
if (text.trim() != '')
openTag('p');
else
return;
}
if (node._n == 'p' && node._a.length == 0)
text = text.trimLeft();
node._a.push({_t: text});