Поправки

This commit is contained in:
Book Pauk
2019-02-24 00:32:19 +07:00
parent 9d0bbec4b3
commit 33a2ca55f0
2 changed files with 2 additions and 8 deletions

View File

@@ -97,7 +97,7 @@ export default class DrawHelper {
lineText += `${tOpen}${text}${tClose}`;
center = center || part.style.center;
space = (part.style.space > 0 ? part.style.space : space);
space = (part.style.space > space ? part.style.space : space);
//избражения
//image: {local: Boolean, inline: Boolean, id: String, imageLine: Number, lineCount: Number, paraIndex: Number},

View File

@@ -366,13 +366,7 @@ export default class BookParser {
}
if (path.indexOf('/fictionbook/body/section') == 0) {
switch (tag) {
case 'p':
growParagraph(`${tOpen}${text}${tClose}`, text.length);
break;
default:
growParagraph(`${tOpen}${text}${tClose}`, text.length);
}
growParagraph(`${tOpen}${text}${tClose}`, text.length);
}
if (binaryId) {