From d473933923fa03e9fbb07b69fd7f1267ef424baf Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 11 Feb 2014 01:14:08 +0100 Subject: manpage: fix formatting of example code --- DOCS/man/en/lua.rst | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'DOCS') 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. -- cgit v1.2.3