diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-24 18:11:01 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-24 18:11:01 +0100 |
commit | 81b734c151d9b1b0150fec82ef9d73490a6c7ca5 (patch) | |
tree | 5226cd9874ff9f5105f95fa86665cc52420f8cbe /lib/output | |
parent | 0b4a6b5362795f25594aabb458378df1599e4dbd (diff) | |
download | gitbook-81b734c151d9b1b0150fec82ef9d73490a6c7ca5.zip gitbook-81b734c151d9b1b0150fec82ef9d73490a6c7ca5.tar.gz gitbook-81b734c151d9b1b0150fec82ef9d73490a6c7ca5.tar.bz2 |
Fix generation of ebooks in multilanguages
Diffstat (limited to 'lib/output')
-rw-r--r-- | lib/output/base.js | 2 | ||||
-rw-r--r-- | lib/output/folder.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/output/base.js b/lib/output/base.js index fe792ee..6be06f8 100644 --- a/lib/output/base.js +++ b/lib/output/base.js @@ -19,7 +19,7 @@ function Output(book, opts, parent) { _.bindAll(this); this.parent = parent; - this.opts = _.defaults(opts || {}, { + this.opts = _.defaults({}, opts || {}, { directoryIndex: true }); diff --git a/lib/output/folder.js b/lib/output/folder.js index f4e9941..8303ed2 100644 --- a/lib/output/folder.js +++ b/lib/output/folder.js @@ -64,7 +64,7 @@ module.exports = function folderOutput(Base) { // Prepare output for a language book FolderOutput.prototype.onLanguageBook = function(book) { - return new this.constructor(book, _.extend(this.opts, { + return new this.constructor(book, _.extend({}, this.opts, { // Language output should be output in sub-directory of output root: path.resolve(this.root(), book.language) |