summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-28 23:18:50 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:11 +0900
commit5f6b5feac6d55e69c01858b314da6184c5f547c5 (patch)
treec99e15b494c4e8ad62457cd8a25d5c29883d43cf /DOCS
parente2a4fde6de8e2173160746a5e687b9a5d2d387c9 (diff)
downloadmpv-5f6b5feac6d55e69c01858b314da6184c5f547c5.tar.bz2
mpv-5f6b5feac6d55e69c01858b314da6184c5f547c5.tar.xz
lua: add a function that formats Lua values as strings
Yep, Lua is so crappy that the stdlib doesn't provide anything like this. Repurposes the undocumented mp.format_table() function and moves it to mp.utils.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/lua.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst
index 3c0d104e40..57c1c35e5d 100644
--- a/DOCS/man/lua.rst
+++ b/DOCS/man/lua.rst
@@ -623,6 +623,10 @@ strictly part of the guaranteed API.
trailing text is returned as 3rd return value. (The 3rd return value is
always there, but with ``trail`` set, no error is raised.)
+``utils.to_string(v)``
+ Turn the given value into a string. Formats tables and their contents. This
+ doesn't do anything special; it is only needed because Lua is terrible.
+
Events
------