Doc: Fix codeblock broken sphinx

This commit is contained in:
Serhii Snitsaruk 2024-08-05 17:27:43 +02:00
parent a56272a248
commit 549a595b42
No known key found for this signature in database
GPG Key ID: A965EF8799FFEC2D
2 changed files with 5 additions and 2 deletions

View File

@ -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:
::
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>`.

View File

@ -42,7 +42,9 @@
<param index="1" name="handler" type="Callable" />
<description>
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].
</description>
</method>