mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-25 12:42:04 +08:00
manpage: fix formatting of example code
This commit is contained in:
+7
-6
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user