Doc: Fix codeblock broken sphinx
This commit is contained in:
parent
a56272a248
commit
549a595b42
|
@ -273,7 +273,8 @@ Called during the update. Implement your state's behavior with this method.
|
||||||
Registers a ``handler`` to be called when ``event`` is dispatched. The handler function should have the following signature:
|
Registers a ``handler`` to be called when ``event`` is dispatched. The handler function should have the following signature:
|
||||||
|
|
||||||
::
|
::
|
||||||
func my_event_handler(cargo=null) -> void:
|
|
||||||
|
func my_event_handler(cargo=null) -> void:
|
||||||
|
|
||||||
Cargo is an optional parameter that can be passed to the handler. See also :ref:`dispatch<class_LimboState_method_dispatch>`.
|
Cargo is an optional parameter that can be passed to the handler. See also :ref:`dispatch<class_LimboState_method_dispatch>`.
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,9 @@
|
||||||
<param index="1" name="handler" type="Callable" />
|
<param index="1" name="handler" type="Callable" />
|
||||||
<description>
|
<description>
|
||||||
Registers a [param handler] to be called when [param event] is dispatched. The handler function should have the following signature:
|
Registers a [param handler] to be called when [param event] is dispatched. The handler function should have the following signature:
|
||||||
[codeblock]func my_event_handler(cargo=null) -> void:[/codeblock]
|
[codeblock]
|
||||||
|
func my_event_handler(cargo=null) -> void:
|
||||||
|
[/codeblock]
|
||||||
Cargo is an optional parameter that can be passed to the handler. See also [method dispatch].
|
Cargo is an optional parameter that can be passed to the handler. See also [method dispatch].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
|
Loading…
Reference in New Issue