From 1ef78ece0a00d706518474b504380a41381b67cb Mon Sep 17 00:00:00 2001 From: Nils Brederlow <62596379+dingodoppelt@users.noreply.github.com> Date: Sun, 14 Jun 2026 23:21:55 +0200 Subject: [PATCH] Fix extra space generated by "generate_json_rpc_docs.py" --- docs/JSON-RPC.md | 14 +++++++------- tools/generate_json_rpc_docs.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/JSON-RPC.md b/docs/JSON-RPC.md index cfe8dfbe3e..a2a778662a 100644 --- a/docs/JSON-RPC.md +++ b/docs/JSON-RPC.md @@ -258,7 +258,7 @@ Results: ### jamulusclient/setFaderLevel -Sets the fader level. Example: {"id":1,"jsonrpc":"2.0","method":"jamulusclient/setFaderLevel","params":{"channelIndex": 0,"level": 50}}. +Sets the fader level. Example: {"id":1,"jsonrpc":"2.0","method":"jamulusclient/setFaderLevel","params":{"channelIndex": 0,"level": 50}}. Parameters: @@ -391,7 +391,7 @@ Results: | result.countryId | number | The server country ID (see QLocale::Country). | | result.welcomeMessage | string | The server welcome message. | | result.directoryType | string | The directory type as a string (see EDirectoryType and SerializeDirectoryType). | -| result.directoryAddress | string | The string used to look up the directory address (only assume valid if directoryType is "custom" and registrationStatus is "registered"). | +| result.directoryAddress | string | The string used to look up the directory address (only assume valid if directoryType is "custom" and registrationStatus is "registered"). | | result.directory | string | The directory with which this server requested registration, or blank if none. | | result.registrationStatus | string | The server registration status as string (see ESvrRegStatus and SerializeRegistrationStatus). | @@ -410,7 +410,7 @@ Results: | Name | Type | Description | | --- | --- | --- | -| result | string | Always "acknowledged". To check if the recording was restarted or if there is any error, call `jamulusserver/getRecorderStatus` again. | +| result | string | Always "acknowledged". To check if the recording was restarted or if there is any error, call `jamulusserver/getRecorderStatus` again. | ### jamulusserver/setDirectory @@ -445,7 +445,7 @@ Results: | Name | Type | Description | | --- | --- | --- | -| result | string | Always "acknowledged". To check if the directory was changed, call `jamulusserver/getRecorderStatus` again. | +| result | string | Always "acknowledged". To check if the directory was changed, call `jamulusserver/getRecorderStatus` again. | ### jamulusserver/setServerName @@ -496,7 +496,7 @@ Results: | Name | Type | Description | | --- | --- | --- | -| result | string | Always "acknowledged". To check if the recording was enabled, call `jamulusserver/getRecorderStatus` again. | +| result | string | Always "acknowledged". To check if the recording was enabled, call `jamulusserver/getRecorderStatus` again. | ### jamulusserver/stopRecording @@ -513,7 +513,7 @@ Results: | Name | Type | Description | | --- | --- | --- | -| result | string | Always "acknowledged". To check if the recording was disabled, call `jamulusserver/getRecorderStatus` again. | +| result | string | Always "acknowledged". To check if the recording was disabled, call `jamulusserver/getRecorderStatus` again. | ## Notification reference @@ -525,7 +525,7 @@ Parameters: | Name | Type | Description | | --- | --- | --- | -| params.channelLevelList | array | The channel level list. Each item corresponds to the respective client retrieved from the jamulusclient/clientListReceived notification. | +| params.channelLevelList | array | The channel level list. Each item corresponds to the respective client retrieved from the jamulusclient/clientListReceived notification. | | params.channelLevelList[*] | number | The channel level, an integer between 0 and 9. | diff --git a/tools/generate_json_rpc_docs.py b/tools/generate_json_rpc_docs.py index 4b184cb2d8..b8ed5019af 100755 --- a/tools/generate_json_rpc_docs.py +++ b/tools/generate_json_rpc_docs.py @@ -219,7 +219,7 @@ def to_markdown(self): current_item.handle_tag("result") current_item.handle_text(line[len("/// @result "):]) elif line.startswith("///"): - current_item.handle_text(line[len("///"):]) + current_item.handle_text(line[len("///") + 1:]) elif line == "": pass else: