Правка багов

This commit is contained in:
Book Pauk
2019-01-26 23:40:11 +07:00
parent d0cae73f06
commit 54b4b4795b
2 changed files with 8 additions and 8 deletions

View File

@@ -138,6 +138,8 @@ export default class BookParser {
});
parser.on('textNode', (text) => {
text = text.replace(/[\t\n\r]/g, ' ');
if (text != ' ' && text.trim() == '')
text = text.trim();