summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/data/load_dat.lua
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2017-07-27 22:14:09 -0500
committer cracyc <cracyc@users.noreply.github.com>2017-07-27 22:14:09 -0500
commit97a4f94d17e02c0155804a6353cc716b16473f23 (patch)
tree02f22637e55dc3f8bb82ffdde07a9f3b2b6826a9 /plugins/data/load_dat.lua
parentc3d5b9856d5135dfb03d9233232555c972acffc8 (diff)
plugins/data: fix small things (nw)
Diffstat (limited to 'plugins/data/load_dat.lua')
-rw-r--r--plugins/data/load_dat.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/data/load_dat.lua b/plugins/data/load_dat.lua
index 6f80458c593..d222dde5b0a 100644
--- a/plugins/data/load_dat.lua
+++ b/plugins/data/load_dat.lua
@@ -141,6 +141,7 @@ function datfile.open(file, vertag, fixupcb)
set:gsub("([^,]+)", function(s) sets[#sets + 1] = s end)
if #tags > 0 and #sets > 0 then
local tag1 = info2:match("^$([^%s]*)")
+ data = data:gsub("\r", "") -- strip crs
if fixupcb then
data = fixupcb(data)
end