Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't do formspec escaping twice for loading description
  • Loading branch information
est31 committed Aug 14, 2015
1 parent be9024a commit 25dfd1b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions builtin/mainmenu/common.lua
Expand Up @@ -224,10 +224,10 @@ function menu_handle_key_up_down(fields,textlist,settingname)

configure_selected_world_params(newidx)
end

return true
end

return false
end

Expand All @@ -237,7 +237,7 @@ function asyncOnlineFavourites()
if not menudata.public_known then
menudata.public_known = {{
name = fgettext("Loading..."),
description = fgettext("Try reenabling public serverlist and check your internet connection.")
description = fgettext_ne("Try reenabling public serverlist and check your internet connection.")
}}
end
menudata.favorites = menudata.public_known
Expand All @@ -262,22 +262,22 @@ end
--------------------------------------------------------------------------------
function text2textlist(xpos,ypos,width,height,tl_name,textlen,text,transparency)
local textlines = core.splittext(text,textlen)

local retval = "textlist[" .. xpos .. "," .. ypos .. ";"
.. width .. "," .. height .. ";"
.. tl_name .. ";"

for i=1, #textlines, 1 do
textlines[i] = textlines[i]:gsub("\r","")
retval = retval .. core.formspec_escape(textlines[i]) .. ","
end

retval = retval .. ";0;"

if transparency then
retval = retval .. "true"
end

retval = retval .. "]"

return retval
Expand Down

0 comments on commit 25dfd1b

Please sign in to comment.