mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 23:02:37 +00:00
manpage: fix formatting of example code
This commit is contained in:
parent
0ed6644ded
commit
d473933923
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user