From 45d422d9a1356dc685272919323d31c042bf5b06 Mon Sep 17 00:00:00 2001 From: daniel-j Date: Wed, 7 Jun 2017 10:41:41 +0200 Subject: [PATCH] Fix html scraping --- src/FimFic2Epub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FimFic2Epub.js b/src/FimFic2Epub.js index 3937170..ddc54d3 100644 --- a/src/FimFic2Epub.js +++ b/src/FimFic2Epub.js @@ -642,7 +642,7 @@ class FimFic2Epub extends Emitter { let chapterPos = html.indexOf('
') let chapter = html.substring(chapterPos + 20) - let pos = chapter.indexOf('\t\t
\n') + let pos = chapter.indexOf('\t\t\n\t') chapter = chapter.substring(0, pos).trim()