From 88d43af276a4ed85500863b427bf370d8eca2095 Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 7 Jul 2013 15:53:40 -0400 Subject: Fix many formspec menu bugs --- builtin/mainmenu_helper.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'builtin/mainmenu_helper.lua') 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 -- cgit v1.2.3