mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-05-21 12:53:13 +12:00
Fix nbsp! It's invalid in epub ;)
This commit is contained in:
parent
1e1b6e9b8d
commit
3bf10f021d
|
@ -384,7 +384,7 @@ class FimFic2Epub extends EventEmitter {
|
|||
let chapter = this.chapters[i]
|
||||
let content = chapter.content
|
||||
if (this.options.typogrify) {
|
||||
content = typogr(content.replace(/"/ig, '"').replace(/\.\.\.+/ig, '...')).chain().widont().smartypants().ord().value()
|
||||
content = typogr(content.replace(/"/ig, '"').replace(/\.\.\.+/ig, '...')).chain().widont().smartypants().ord().value().replace(/ /ig, ' ')
|
||||
}
|
||||
|
||||
chain = chain.then(template.createChapter.bind(null, this, {
|
||||
|
|
Loading…
Reference in a new issue