Strip trailing \r from lines (possibly fixes windows migration)

master
orwell96 2021-05-03 21:47:53 +02:00
parent edcc0d0917
commit 07f4e83ded
1 changed files with 2 additions and 0 deletions

View File

@ -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