summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-02-24 16:00:35 -0500
committerkwolekr <kwolekr@minetest.net>2013-03-05 23:25:02 -0500
commitba78194636a9a498f6979cc21cd39399f23d658a (patch)
tree7cad8f0234fe4f7ff45807364b4c275296982805 /doc
parentbdbdeab0053d9ebbaffea17effeba777b710d390 (diff)
downloadminetest-ba78194636a9a498f6979cc21cd39399f23d658a.tar.gz
minetest-ba78194636a9a498f6979cc21cd39399f23d658a.tar.bz2
minetest-ba78194636a9a498f6979cc21cd39399f23d658a.zip
Allow any character in formspec strings with escape char
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 005d7c010..8246377e2 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -778,6 +778,9 @@ string:trim()
minetest.pos_to_string({x=X,y=Y,z=Z}) -> "(X,Y,Z)"
^ Convert position to a printable string
minetest.string_to_pos(string) -> position
+^ Same but in reverse
+minetest.formspec_escape(string) -> string
+^ escapes characters like [, ], and \ that can not be used in formspecs
minetest namespace reference
-----------------------------