mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-09-28 23:31:16 +12:00
Fix paragraph indents
This commit is contained in:
parent
07c1505f6d
commit
f87cb43e45
4 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
|||
"name": "fimfic2epub",
|
||||
"short_name": "fimfic2epub",
|
||||
"description": "Improved EPUB exporter for Fimfiction",
|
||||
"version": "1.5.0",
|
||||
"version": "1.5.1",
|
||||
|
||||
"icons": {
|
||||
"128": "icon-128.png"
|
||||
|
|
|
@ -145,7 +145,7 @@ gulp.task('pack:firefox', () => {
|
|||
gulp.task('pack:chrome', (done) => {
|
||||
execFile('./packchrome.sh', [], (error, stdout, stderr) => {
|
||||
// gutil.log('[pack:chrome]', stdout)
|
||||
if (error || stderr) {
|
||||
if (error) {
|
||||
done(new gutil.PluginError('pack:chrome', stderr, {showStack: false}))
|
||||
return
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "fimfic2epub",
|
||||
"version": "1.5.0",
|
||||
"version": "1.5.1",
|
||||
"description": "Tool to generate improved EPUB ebooks from Fimfiction stories",
|
||||
"author": "djazz",
|
||||
"repository": {
|
||||
|
|
|
@ -20,8 +20,6 @@ export function cleanMarkup (html) {
|
|||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
html = fixParagraphIndent(html)
|
||||
|
||||
// fix center tags
|
||||
html = html.replace(/<center>/g, '<p style="text-align: center;">')
|
||||
html = html.replace(/<\/center>/g, '</p>')
|
||||
|
@ -107,6 +105,8 @@ export function cleanMarkup (html) {
|
|||
html = html.replace(/ /g, ' ')
|
||||
html = html.replace(/ /g, ' ')
|
||||
|
||||
html = fixParagraphIndent(html)
|
||||
|
||||
html = fixDoubleSpacing(html)
|
||||
|
||||
resolve(html)
|
||||
|
|
Loading…
Reference in a new issue