Fix paragraph indents

This commit is contained in:
daniel-j 2017-05-26 10:56:16 +02:00
parent 07c1505f6d
commit f87cb43e45
4 changed files with 5 additions and 5 deletions

View file

@ -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"

View file

@ -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
}

View file

@ -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": {

View file

@ -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(/&nbsp;/g, ' ')
html = html.replace(/&#160;/g, ' ')
html = fixParagraphIndent(html)
html = fixDoubleSpacing(html)
resolve(html)