Skip to content

Commit

Permalink
Doc: Fix codeblock broken sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
limbonaut committed Aug 5, 2024
1 parent a56272a commit 549a595
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/source/classes/class_limbostate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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>`.

Expand Down
4 changes: 3 additions & 1 deletion doc_classes/LimboState.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 549a595

Please sign in to comment.