Поправил бажок

This commit is contained in:
Book Pauk
2019-01-22 18:19:49 +07:00
parent 7194639a3b
commit ffae3e1fee

View File

@@ -69,9 +69,9 @@ export default class BookParser {
let p = para[paraIndex];
if (p) {
paraOffset -= p.length;
if (p.text == ' ') {
if (p.length == 1 && p.text[0] == ' ' && len > 0) {
p.length = 0;
p.text = '';
p.text = p.text.substr(1);;
}
p.length += len;
p.text += text;