From 549a595b422814c8346449fb0ce39942eeb5a67c Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Mon, 5 Aug 2024 17:27:43 +0200 Subject: [PATCH] Doc: Fix codeblock broken sphinx --- doc/source/classes/class_limbostate.rst | 3 ++- doc_classes/LimboState.xml | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/source/classes/class_limbostate.rst b/doc/source/classes/class_limbostate.rst index 49d9522..5ca9bcb 100644 --- a/doc/source/classes/class_limbostate.rst +++ b/doc/source/classes/class_limbostate.rst @@ -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`. diff --git a/doc_classes/LimboState.xml b/doc_classes/LimboState.xml index 4fc520f..e23c437 100644 --- a/doc_classes/LimboState.xml +++ b/doc_classes/LimboState.xml @@ -42,7 +42,9 @@ 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].