Поправка багов
This commit is contained in:
@@ -52,14 +52,14 @@ class ConvertHtml extends ConvertBase {
|
|||||||
newParagraph();
|
newParagraph();
|
||||||
|
|
||||||
const l = pars.length;
|
const l = pars.length;
|
||||||
if (pars[l - 1]._t == '')
|
|
||||||
text = text.trimLeft();
|
|
||||||
pars[l - 1]._t += text;
|
pars[l - 1]._t += text;
|
||||||
|
|
||||||
//посчитаем отступы у текста, чтобы выделить потом параграфы
|
//посчитаем отступы у текста, чтобы выделить потом параграфы
|
||||||
const lines = text.split('\n');
|
const lines = text.split('\n');
|
||||||
for (let line of lines) {
|
for (let line of lines) {
|
||||||
line = repCrLfTab(line)
|
if (line.trim() == '')
|
||||||
|
continue;
|
||||||
|
line = repCrLfTab(line);
|
||||||
|
|
||||||
let l = 0;
|
let l = 0;
|
||||||
while (l < line.length && line[l] == ' ') {
|
while (l < line.length && line[l] == ' ') {
|
||||||
@@ -114,7 +114,6 @@ class ConvertHtml extends ConvertBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
total /= 20;
|
total /= 20;
|
||||||
|
|
||||||
let i = spaceCounter.length - 1;
|
let i = spaceCounter.length - 1;
|
||||||
while (i > 0 && (!spaceCounter[i] || spaceCounter[i] < total)) i--;
|
while (i > 0 && (!spaceCounter[i] || spaceCounter[i] < total)) i--;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user