From 07f4e83dedbf0547ec8cdb1879c9a93268d09107 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Mon, 3 May 2021 21:47:53 +0200 Subject: Strip trailing \r from lines (possibly fixes windows migration) --- serialize.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3