Move style_type to entry part only

master
Wuzzy 2020-03-10 18:28:46 +01:00
parent 42e69257c8
commit 4fb5d6de8a
1 changed files with 2 additions and 2 deletions

View File

@ -658,7 +658,6 @@ end)
function doc.formspec_core(tab)
if tab == nil then tab = 1 else tab = tostring(tab) end
return "size["..doc.FORMSPEC.WIDTH..","..doc.FORMSPEC.HEIGHT.."]"..
"style_type[textarea;textcolor=#FFFFFF]"..
"tabheader[0,0;doc_header;"..
minetest.formspec_escape(S("Category list")) .. "," ..
minetest.formspec_escape(S("Entry list")) .. "," ..
@ -940,7 +939,8 @@ function doc.formspec_entry(category_id, entry_id, playername)
if ename == nil or ename == "" then
ename = S("Nameless entry (@1)", entry_id)
end
formstring = "label[0,0;"..minetest.formspec_escape(S("Help > @1 > @2", category.def.name, ename)).."]"
formstring = "style_type[textarea;textcolor=#FFFFFF]"
formstring = formstring .. "label[0,0;"..minetest.formspec_escape(S("Help > @1 > @2", category.def.name, ename)).."]"
formstring = formstring .. category.def.build_formspec(entry.data, playername)
formstring = formstring .. doc.formspec_entry_navigation(category_id, entry_id)
end