mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Fix many formspec menu bugs
This commit is contained in:
parent
7e73b7cae9
commit
88d43af276
13 changed files with 377 additions and 116 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue