diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-09-05 12:50:33 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-09-05 12:50:33 -0700 |
commit | 569f34fb5b23dc68cbb9be431c14050a0b194945 (patch) | |
tree | 2c758c926bb447403aa8588fa293e3e32d88d086 /file.lua | |
parent | 386c4c1967a9790d14e9e01195a35a57528b8b3b (diff) | |
parent | e0f750913fa653c03a666203e04c59e847e73bff (diff) | |
download | view.love-569f34fb5b23dc68cbb9be431c14050a0b194945.tar.gz |
Merge text.love
Diffstat (limited to 'file.lua')
-rw-r--r-- | file.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/file.lua b/file.lua index e95c14d..98311da 100644 --- a/file.lua +++ b/file.lua @@ -37,7 +37,8 @@ function save_to_disk(State) error('failed to write to "'..State.filename..'"') end for _,line in ipairs(State.lines) do - outfile:write(line.data, '\n') + outfile:write(line.data) + outfile:write('\n') end outfile:close() end |