diff options
Diffstat (limited to 'serialize.lua')
-rw-r--r-- | serialize.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/serialize.lua b/serialize.lua index 4b1ebb7..f1175ef 100644 --- a/serialize.lua +++ b/serialize.lua @@ -117,6 +117,8 @@ function read_table(t, file) file:close() error("Unexpected EOF or read error!") end + -- possibly windows fix: strip trailing \r's from line + line = string.gsub(line, "\r$", "") if line=="E" then -- done with this table |