diff --git a/lib/6to5/generation/buffer.js b/lib/6to5/generation/buffer.js index afd9c4dd23..fdd53b0659 100644 --- a/lib/6to5/generation/buffer.js +++ b/lib/6to5/generation/buffer.js @@ -14,11 +14,11 @@ Buffer.prototype.get = function () { return util.trimRight(this.buf); }; -Buffer.prototype.getIndent = function () { +Buffer.prototype.getIndent = function (i) { if (this.format.compact) { return ""; } else { - return util.repeat(this._indent, this.format.indent.style); + return util.repeat(i || this._indent, this.format.indent.style); } };