1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-09 00:19:32 +00:00

manpage: fix formatting of example code

This commit is contained in:
wm4 2014-02-11 01:14:08 +01:00
parent 0ed6644ded
commit d473933923

View File

@ -97,13 +97,14 @@ The ``mp`` module is preloaded, although it can be loaded manually with
Example: Example:
``` ::
function my_fn()
print("start of playback!") function my_fn()
end print("start of playback!")
end
mp.register_event("playback-start", my_fn)
mp.register_event("playback-start", my_fn)
```
``mp.add_timeout(seconds, fn)`` ``mp.add_timeout(seconds, fn)``
Call the given function fn when the given number of seconds has elapsed. Call the given function fn when the given number of seconds has elapsed.