mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-09-29 16:51:09 +13: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",
|
"name": "fimfic2epub",
|
||||||
"short_name": "fimfic2epub",
|
"short_name": "fimfic2epub",
|
||||||
"description": "Improved EPUB exporter for Fimfiction",
|
"description": "Improved EPUB exporter for Fimfiction",
|
||||||
"version": "1.5.0",
|
"version": "1.5.1",
|
||||||
|
|
||||||
"icons": {
|
"icons": {
|
||||||
"128": "icon-128.png"
|
"128": "icon-128.png"
|
||||||
|
|
|
@ -145,7 +145,7 @@ gulp.task('pack:firefox', () => {
|
||||||
gulp.task('pack:chrome', (done) => {
|
gulp.task('pack:chrome', (done) => {
|
||||||
execFile('./packchrome.sh', [], (error, stdout, stderr) => {
|
execFile('./packchrome.sh', [], (error, stdout, stderr) => {
|
||||||
// gutil.log('[pack:chrome]', stdout)
|
// gutil.log('[pack:chrome]', stdout)
|
||||||
if (error || stderr) {
|
if (error) {
|
||||||
done(new gutil.PluginError('pack:chrome', stderr, {showStack: false}))
|
done(new gutil.PluginError('pack:chrome', stderr, {showStack: false}))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "fimfic2epub",
|
"name": "fimfic2epub",
|
||||||
"version": "1.5.0",
|
"version": "1.5.1",
|
||||||
"description": "Tool to generate improved EPUB ebooks from Fimfiction stories",
|
"description": "Tool to generate improved EPUB ebooks from Fimfiction stories",
|
||||||
"author": "djazz",
|
"author": "djazz",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -20,8 +20,6 @@ export function cleanMarkup (html) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
html = fixParagraphIndent(html)
|
|
||||||
|
|
||||||
// fix center tags
|
// fix center tags
|
||||||
html = html.replace(/<center>/g, '<p style="text-align: center;">')
|
html = html.replace(/<center>/g, '<p style="text-align: center;">')
|
||||||
html = html.replace(/<\/center>/g, '</p>')
|
html = html.replace(/<\/center>/g, '</p>')
|
||||||
|
@ -107,6 +105,8 @@ export function cleanMarkup (html) {
|
||||||
html = html.replace(/ /g, ' ')
|
html = html.replace(/ /g, ' ')
|
||||||
html = html.replace(/ /g, ' ')
|
html = html.replace(/ /g, ' ')
|
||||||
|
|
||||||
|
html = fixParagraphIndent(html)
|
||||||
|
|
||||||
html = fixDoubleSpacing(html)
|
html = fixDoubleSpacing(html)
|
||||||
|
|
||||||
resolve(html)
|
resolve(html)
|
||||||
|
|
Loading…
Reference in a new issue