summaryrefslogtreecommitdiff
path: root/builtin/mainmenu_helper.lua
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-07-07 15:53:40 -0400
committerkwolekr <kwolekr@minetest.net>2013-07-07 19:49:52 -0400
commit88d43af276a4ed85500863b427bf370d8eca2095 (patch)
treed02fe1196639c48ad14bc4cfc6c5d621015488bf /builtin/mainmenu_helper.lua
parent7e73b7cae9faf203e369dc5cf2b85cff6e6efbad (diff)
downloadminetest-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.lua6
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