Skip to content

Commit

Permalink
fix: newline after each print
Browse files Browse the repository at this point in the history
  • Loading branch information
pgagnidze committed Jun 12, 2023
1 parent 2816572 commit 2f6b89a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ena/interpreter.lua
Expand Up @@ -290,6 +290,7 @@ function Interpreter:run(code)
elseif code[pc] == "print" then
self:traceUnaryOp(code[pc])
printValue(self.stack[self.top], nil, nil, nil, nil, self.output)
table.insert(self.output, "\n")
io.write "\n"
self:popStack(1)
elseif code[pc] == "return" then
Expand Down

0 comments on commit 2f6b89a

Please sign in to comment.