Fix generation of multilingual book as ebook

This commit is contained in:
Samy Pessé
2015-02-14 11:49:42 +01:00
parent 4740cd3b06
commit 684440e2d1
+5 -4
View File
@@ -44,10 +44,11 @@ Generator.prototype.writeSummary = function() {
Generator.prototype.finish = function() {
var that = this;
return BaseGenerator.prototype.finish.apply(this)
.then(function() {
return that.writeSummary();
})
return Q()
.then(this.copyAssets)
.then(this.copyCover)
.then(this.writeGlossary)
.then(this.writeSummary)
.then(function() {
if (!that.ebookFormat) return Q();