skulpt / skulpt

Skulpt is a Javascript implementation of the Python programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Files have an extra newline character at the end

acbart opened this issue · comments

for (i in this.lineList) {

I'm pretty sure this isn't the correct line - the last line of files will not have a newline character. Instead, the proper code should be:

for (let i=0; i < this.lineList.length-1; i+= 1) {
    this.lineList[i] = this.lineList[i] + "\n";
}

Sorry it's not a PR, but I'm short on time as ever...