mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-17 02:57:33 +02:00
Merge bitcoin/bitcoin#32514: scripted-diff: Remove unused leading newline in RPC docs
fa1f10a49edoc: Fix minor typos in rpc help (MarcoFalke)fae840e94brpc: Reject beginning newline in RPC docs (MarcoFalke)fa414eda08scripted-diff: Remove unused leading newline in RPC docs (MarcoFalke) Pull request description: It is harmless, but newlines in the beginning read a bit odd ("nReturns"). So just require them to not be present. The diff is large, but a trivial scripted-diff. ACKs for top commit: fanquake: ACKfa1f10a49ew0xlt: ACKfa1f10a49eTree-SHA512: 5d2f9632f42ec1c02814d050f223941f436e5b0df426d7d6eb93fdd0ff118d57185af07b271dd73af63735dd17231125826c0c9ce0aad36bc8829c5b050a628c
This commit is contained in:
@@ -793,6 +793,7 @@ std::string RPCHelpMan::ToString() const
|
||||
if (was_optional) ret += " )";
|
||||
|
||||
// Description
|
||||
CHECK_NONFATAL(!m_description.starts_with('\n')); // Historically \n was required, but reject it for new code.
|
||||
ret += "\n\n" + TrimString(m_description) + "\n";
|
||||
|
||||
// Arguments
|
||||
|
||||
Reference in New Issue
Block a user