mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-27 06:19:09 +01:00
doc: Normalize RPC description whitespace
This commit is contained in:
@@ -301,7 +301,7 @@ static RPCHelpMan deriveaddresses()
|
|||||||
static RPCHelpMan verifymessage()
|
static RPCHelpMan verifymessage()
|
||||||
{
|
{
|
||||||
return RPCHelpMan{"verifymessage",
|
return RPCHelpMan{"verifymessage",
|
||||||
"\nVerify a signed message\n",
|
"Verify a signed message.",
|
||||||
{
|
{
|
||||||
{"address", RPCArg::Type::STR, RPCArg::Optional::NO, "The bitcoin address to use for the signature."},
|
{"address", RPCArg::Type::STR, RPCArg::Optional::NO, "The bitcoin address to use for the signature."},
|
||||||
{"signature", RPCArg::Type::STR, RPCArg::Optional::NO, "The signature provided by the signer in base 64 encoding (see signmessage)."},
|
{"signature", RPCArg::Type::STR, RPCArg::Optional::NO, "The signature provided by the signer in base 64 encoding (see signmessage)."},
|
||||||
|
|||||||
@@ -620,10 +620,9 @@ std::string RPCHelpMan::ToString() const
|
|||||||
ret += arg.ToString(/* oneline */ true);
|
ret += arg.ToString(/* oneline */ true);
|
||||||
}
|
}
|
||||||
if (was_optional) ret += " )";
|
if (was_optional) ret += " )";
|
||||||
ret += "\n";
|
|
||||||
|
|
||||||
// Description
|
// Description
|
||||||
ret += m_description;
|
ret += "\n\n" + TrimString(m_description) + "\n";
|
||||||
|
|
||||||
// Arguments
|
// Arguments
|
||||||
Sections sections;
|
Sections sections;
|
||||||
|
|||||||
@@ -17,9 +17,9 @@ class RPCGenerateTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
def run_test(self):
|
def run_test(self):
|
||||||
message = (
|
message = (
|
||||||
"generate\n"
|
"generate\n\n"
|
||||||
"has been replaced by the -generate "
|
"has been replaced by the -generate "
|
||||||
"cli option. Refer to -help for more information."
|
"cli option. Refer to -help for more information.\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
self.log.info("Test rpc generate raises with message to use cli option")
|
self.log.info("Test rpc generate raises with message to use cli option")
|
||||||
|
|||||||
Reference in New Issue
Block a user