Skip to content
Snippets Groups Projects
Commit e81753b6 authored by est31's avatar est31
Browse files

Don't generate trailing spaces in minetest.conf.example

If the default value of a setting was empty,
it previously generated a trailing space.
parent e9cd0104
No related branches found
No related tags found
No related merge requests found
......@@ -706,7 +706,11 @@ local function create_minetest_conf_example()
result = result .. " possible values: " .. entry.possible:gsub(",", ", ")
end
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
return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment