From 684440e2d1bbd2546f8a935290d91c6e83ed41d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Sat, 14 Feb 2015 11:49:42 +0100 Subject: [PATCH] Fix generation of multilingual book as ebook --- lib/generators/ebook.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/generators/ebook.js b/lib/generators/ebook.js index 09215c499..3063e8377 100644 --- a/lib/generators/ebook.js +++ b/lib/generators/ebook.js @@ -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();