summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-11 01:14:08 +0100
committerwm4 <wm4@nowhere>2014-02-11 01:14:08 +0100
commitd473933923fa03e9fbb07b69fd7f1267ef424baf (patch)
treeaf4acbeade1b962df33cc75788029000d3ea57fa /DOCS
parent0ed6644dedb2ccf513e43e42bb29f2bfe7b4b5f3 (diff)
downloadmpv-d473933923fa03e9fbb07b69fd7f1267ef424baf.tar.bz2
mpv-d473933923fa03e9fbb07b69fd7f1267ef424baf.tar.xz
manpage: fix formatting of example code
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/en/lua.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/DOCS/man/en/lua.rst b/DOCS/man/en/lua.rst
index 194483f9bb..4578ced97d 100644
--- a/DOCS/man/en/lua.rst
+++ b/DOCS/man/en/lua.rst
@@ -97,13 +97,14 @@ The ``mp`` module is preloaded, although it can be loaded manually with
Example:
- ```
- function my_fn()
- print("start of playback!")
- end
+ ::
+
+ function my_fn()
+ print("start of playback!")
+ end
+
+ mp.register_event("playback-start", my_fn)
- mp.register_event("playback-start", my_fn)
- ```
``mp.add_timeout(seconds, fn)``
Call the given function fn when the given number of seconds has elapsed.