mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-09-28 07:11:16 +12:00
lint and bump to 1.7.31
This commit is contained in:
parent
d33f0d4782
commit
c4190ebb07
3 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -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--
|
||||
}
|
||||
|
|
|
@ -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}}),
|
||||
|
|
Loading…
Reference in a new issue