lint and bump to 1.7.31

This commit is contained in:
daniel-j 2018-03-26 21:52:04 +02:00
parent d33f0d4782
commit c4190ebb07
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "fimfic2epub", "name": "fimfic2epub",
"version": "1.7.30", "version": "1.7.31",
"description": "Tool to generate improved EPUB ebooks from Fimfiction stories", "description": "Tool to generate improved EPUB ebooks from Fimfiction stories",
"author": "djazz", "author": "djazz",
"license": "MIT", "license": "MIT",

View file

@ -45,7 +45,7 @@ function textToSpans (node, text, state) {
for (let i = 0; i < tokenSentences.length; i++) { for (let i = 0; i < tokenSentences.length; i++) {
let s = tokenSentences[i] let s = tokenSentences[i]
if (s.trim().length === 0) { 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) tokenSentences.splice(i, 1)
i-- i--
} }

View file

@ -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.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(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('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('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}}), 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}}),