Marko v3: Check to avoid bad semicolon when inserting code

This commit is contained in:
Patrick Steele-Idem 2016-02-10 16:21:13 -07:00
parent 5ee4d8fc97
commit fcd2cad02c

View File

@ -364,6 +364,8 @@ class Generator {
// Do nothing
} else if (this._code.endsWith(';')) {
this._code += '\n';
} else if (this._code.endsWith('\n' + this.currentIndent)) {
// Do nothing
} else {
this._code += ';\n';
}