diff options
-rw-r--r-- | lib/generators/ebook.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/generators/ebook.js b/lib/generators/ebook.js index 3063e83..29b1966 100644 --- a/lib/generators/ebook.js +++ b/lib/generators/ebook.js @@ -64,6 +64,8 @@ Generator.prototype.finish = function() { "--comments": that.options.description, "--isbn": that.options.isbn, "--authors": that.options.author, + "--language": that.options.language, + "--book-producer": "GitBook", "--publisher": "GitBook", "--chapter": "descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter ')]", "--chapter-mark": "pagebreak", @@ -91,6 +93,10 @@ Generator.prototype.finish = function() { "--pdf-header-template": String(pdfOptions.headerTemplate) || "<p class='header'><span>"+that.options.title+"</span></p>", "--pdf-footer-template": String(pdfOptions.footerTemplate) || "<p class='footer'><span>_SECTION_</span> <span style='float:right;'>_PAGENUM_</span></p>" }); + } else if (that.ebookFormat == "epub") { + _.extend(_options, { + "--dont-split-on-page-breaks": true + }); } var command = [ |