Добавлена кнопка 'Обновить с разбиением на параграфы'

This commit is contained in:
Book Pauk
2020-11-01 16:42:20 +07:00
parent 9a4a84a367
commit c8c0e9ec1a
4 changed files with 33 additions and 6 deletions

View File

@@ -200,7 +200,7 @@ class ConvertHtml extends ConvertBase {
titleInfo['book-title'] = title;
//подозрение на чистый текст, надо разбить на параграфы
if (isText || pars.length < buf.length/2000) {
if (isText || (buf.length > 30*1024 && pars.length < buf.length/2000)) {
let total = 0;
let count = 1;
for (let i = 0; i < spaceCounter.length; i++) {