diff options
author | wm4 <wm4@nowhere> | 2014-11-28 23:18:50 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-29 00:03:46 +0100 |
commit | 3295caca3d21b20ccab19ab3420d07a139b4f200 (patch) | |
tree | b75ff7040553c889a9e98c84fc862765a148f963 /DOCS/man/lua.rst | |
parent | 9666d48aa332a034d7df72aee320385fb549464d (diff) | |
download | mpv-3295caca3d21b20ccab19ab3420d07a139b4f200.tar.bz2 mpv-3295caca3d21b20ccab19ab3420d07a139b4f200.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/man/lua.rst')
-rw-r--r-- | DOCS/man/lua.rst | 4 |
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 ------ |