diff --git a/package.json b/package.json index be1a99e..ccfdf8b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fimfic2epub", - "version": "1.7.30", + "version": "1.7.31", "description": "Tool to generate improved EPUB ebooks from Fimfiction stories", "author": "djazz", "license": "MIT", diff --git a/src/kepubify.js b/src/kepubify.js index 3244bbe..2b12503 100644 --- a/src/kepubify.js +++ b/src/kepubify.js @@ -45,7 +45,7 @@ function textToSpans (node, text, state) { for (let i = 0; i < tokenSentences.length; i++) { let s = tokenSentences[i] if (s.trim().length === 0) { - if (i-1 >= 0) tokenSentences[i-1] += s + if (i - 1 >= 0) tokenSentences[i - 1] += s tokenSentences.splice(i, 1) i-- } diff --git a/src/main.js b/src/main.js index 8855106..a0b26b8 100644 --- a/src/main.js +++ b/src/main.js @@ -263,7 +263,7 @@ let dialog = { m(checkbox, {checked: ctrl.addChapterBars(), onchange: m.withAttr('checked', ctrl.addChapterBars)}, 'Show reading progress and chapter lengths as bars'), m(checkbox, {checked: ctrl.includeExternal(), onchange: m.withAttr('checked', ctrl.includeExternal)}, 'Download & include remote content (embed images)'), m('div', {style: 'font-size: 0.9em; line-height: 1em; margin-top: 4px; margin-bottom: 6px; opacity: 0.6;'}, 'Note: Disabling this creates invalid EPUBs and requires internet access to see remote content. Only cover image will be embedded.'), - m(checkbox, {checked: ctrl.kepubify(), onchange: m.withAttr('checked', ctrl.kepubify)}, 'Export as Kobo EPUB, this adds some Kobo-specific div/span tags.'), + m(checkbox, {checked: ctrl.kepubify(), onchange: m.withAttr('checked', ctrl.kepubify)}, 'Export as Kobo EPUB, this adds some Kobo-specific div/span tags.') )), m('tr', m('td.label', 'Words per minute'), m('td', {colspan: 2}, m('input', {type: 'number', min: 0, step: 1, value: ctrl.wordsPerMinute(), onchange: m.withAttr('value', ctrl.wordsPerMinute), placeholder: '200 (default)', style: {width: '140px', float: 'left', marginRight: '.75rem', marginTop: '.35rem', position: 'relative', zIndex: 1}}),