diff options
Diffstat (limited to 'lib/generators')
-rw-r--r-- | lib/generators/ebook.js | 4 | ||||
-rw-r--r-- | lib/generators/website.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/generators/ebook.js b/lib/generators/ebook.js index 88159f3..1bad718 100644 --- a/lib/generators/ebook.js +++ b/lib/generators/ebook.js @@ -31,7 +31,7 @@ Generator.prototype.prepareTemplates = function() { Generator.prototype.writeSummary = function() { var that = this; - that.book.logInfo("write SUMMARY.html"); + that.book.log.info.ln("write SUMMARY.html"); return this._writeTemplate(this.templates["summary"], {}, path.join(this.options.output, "SUMMARY.html")); }; @@ -98,7 +98,7 @@ Generator.prototype.finish = function() { stringUtils.optionsToShellArgs(_options) ].join(" "); - that.book.logInfo("start conversion to", that.ebookFormat); + that.book.log.info.ln("start conversion to", that.ebookFormat); exec(command, function (error, stdout, stderr) { if (error) { if (error.code == 127) { diff --git a/lib/generators/website.js b/lib/generators/website.js index bb2daa1..d0c842f 100644 --- a/lib/generators/website.js +++ b/lib/generators/website.js @@ -132,7 +132,7 @@ Generator.prototype.writeParsedFile = function(page) { var basePath = path.relative(path.dirname(output), this.options.output) || "."; if (process.platform === 'win32') basePath = basePath.replace(/\\/g, '/'); - that.book.logInfo("write parsed file", page.path, "to", relativeOutput); + that.book.log.info.ln("write parsed file", page.path, "to", relativeOutput); return that.normalizePage(page) .then(function() { return that._writeTemplate(that.templates["page"], { |