Fix nbsp! It's invalid in epub ;)

This commit is contained in:
Daniel Jönsson 2018-03-16 10:55:21 +01:00
parent 1e1b6e9b8d
commit 3bf10f021d

View file

@ -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, {