mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Don't generate trailing spaces in minetest.conf.example
If the default value of a setting was empty, it previously generated a trailing space.
This commit is contained in:
parent
e9cd01045a
commit
e81753b69c
1 changed files with 5 additions and 1 deletions
|
@ -706,7 +706,11 @@ local function create_minetest_conf_example()
|
||||||
result = result .. " possible values: " .. entry.possible:gsub(",", ", ")
|
result = result .. " possible values: " .. entry.possible:gsub(",", ", ")
|
||||||
end
|
end
|
||||||
result = result .. "\n"
|
result = result .. "\n"
|
||||||
result = result .. "# " .. entry.name .. " = ".. entry.default .. "\n\n"
|
local append = ""
|
||||||
|
if entry.default ~= "" then
|
||||||
|
append = " " .. entry.default
|
||||||
|
end
|
||||||
|
result = result .. "# " .. entry.name .. " =" .. append .. "\n\n"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue