Serialization: strip trailing \r also in nodedb callback
This commit is contained in:
parent
81cd305aa0
commit
e506086011
@ -116,6 +116,8 @@ function ndb.load_callback(file)
|
|||||||
local stid_byte = file:read(2)
|
local stid_byte = file:read(2)
|
||||||
local stid = bytes_to_int(stid_byte)
|
local stid = bytes_to_int(stid_byte)
|
||||||
local stna = file:read("*l")
|
local stna = file:read("*l")
|
||||||
|
-- possibly windows fix: strip trailing \r's from line
|
||||||
|
stna = string.gsub(stna, "\r$", "")
|
||||||
--atdebug("content id:", stid, "->", stna)
|
--atdebug("content id:", stid, "->", stna)
|
||||||
ndb_nodeids[stid] = stna
|
ndb_nodeids[stid] = stna
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user