don't mess with the indentation of TemplateElements
This commit is contained in:
parent
2409b017db
commit
435b9434ea
@ -68,8 +68,8 @@ CodeGenerator.prototype.keyword = function (name) {
|
||||
this.push(" ");
|
||||
};
|
||||
|
||||
CodeGenerator.prototype.push = function (str) {
|
||||
if (this._indent) {
|
||||
CodeGenerator.prototype.push = function (str, noIndent) {
|
||||
if (this._indent && !noIndent) {
|
||||
// we have an indent level and we aren't pushing a newline
|
||||
var indent = this.getIndent();
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ exports.TaggedTemplateExpression = function (node, print) {
|
||||
};
|
||||
|
||||
exports.TemplateElement = function (node, print) {
|
||||
this.push(node.value.raw);
|
||||
this.push(node.value.raw, true);
|
||||
};
|
||||
|
||||
exports.TemplateLiteral = function (node, print) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user