diff options
author | sapier <Sapier at GMX dot net> | 2013-07-07 15:53:40 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-07-07 19:49:52 -0400 |
commit | 88d43af276a4ed85500863b427bf370d8eca2095 (patch) | |
tree | d02fe1196639c48ad14bc4cfc6c5d621015488bf /builtin/mainmenu_helper.lua | |
parent | 7e73b7cae9faf203e369dc5cf2b85cff6e6efbad (diff) | |
download | minetest-88d43af276a4ed85500863b427bf370d8eca2095.tar.gz minetest-88d43af276a4ed85500863b427bf370d8eca2095.tar.bz2 minetest-88d43af276a4ed85500863b427bf370d8eca2095.zip |
Fix many formspec menu bugs
Diffstat (limited to 'builtin/mainmenu_helper.lua')
-rw-r--r-- | builtin/mainmenu_helper.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/mainmenu_helper.lua b/builtin/mainmenu_helper.lua index f5a470b72..a204b4a37 100644 --- a/builtin/mainmenu_helper.lua +++ b/builtin/mainmenu_helper.lua @@ -77,9 +77,9 @@ function fs_escape_string(text) text = newtext end - text = text:gsub("%[","%[%[") - text = text:gsub("]","]]") - text = text:gsub(";"," ") + text = text:gsub("%[","\\%[") + text = text:gsub("]","\\]") + text = text:gsub(";","\\;") end return text end |