From d54462356d15fe737bf4e530456b6d7423bcd95a Mon Sep 17 00:00:00 2001 From: lolleko Date: Mon, 2 Apr 2018 22:17:36 +0200 Subject: [PATCH] Fix indention --- src/Transpiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transpiler.ts b/src/Transpiler.ts index 0941498f5..83e97f93d 100644 --- a/src/Transpiler.ts +++ b/src/Transpiler.ts @@ -364,7 +364,7 @@ export class LuaTranspiler { // Add header let result = ""; for (const variableDeclaration of (node.initializer as ts.VariableDeclarationList).declarations) { - result += this.transpileVariableDeclaration(variableDeclaration); + result += this.indent + this.transpileVariableDeclaration(variableDeclaration); } result += this.indent + `while(${this.transpileExpression(node.condition)}) do\n`;