Handle token.to_string returning nil for empty
This commit is contained in:
parent
3579605228
commit
10add04b91
@ -135,7 +135,8 @@ token.luacmd("closein", function(_, prefix)
|
||||
end, "value")
|
||||
|
||||
local function do_write(p)
|
||||
local content = token.to_string(p.data) .. '\n'
|
||||
local data = token.to_string(p.data)
|
||||
local content = data and data .. '\n' or '\n'
|
||||
local file = ofiles[p.file]
|
||||
if file then
|
||||
file:write(content)
|
||||
|
Loading…
Reference in New Issue
Block a user