Commit a650d948 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

convert empty strings to nil values in input configuration table

skip expansion in the variable fragment to avoid clearing variable declarations
parent 9ca4e2d6
......@@ -143,12 +143,14 @@ function Config:init(confdirs, importdirs)
end
end
obj[k] = val
obj[k] = val ~= '' and val or nil
end
end
end
expandvars(self.input)
for k, v in pairs(self.input) do
if k ~= 'variable' then expandvars(v) end
end
local function insertrule(trule)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment