Merge bitcoin/bitcoin#32514: scripted-diff: Remove unused leading newline in RPC docs

fa1f10a49e doc: Fix minor typos in rpc help (MarcoFalke)
fae840e94b rpc: Reject beginning newline in RPC docs (MarcoFalke)
fa414eda08 scripted-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:
    ACK fa1f10a49e
  w0xlt:
    ACK fa1f10a49e

Tree-SHA512: 5d2f9632f42ec1c02814d050f223941f436e5b0df426d7d6eb93fdd0ff118d57185af07b271dd73af63735dd17231125826c0c9ce0aad36bc8829c5b050a628c
This commit is contained in:
merge-script
2025-05-17 10:10:35 +01:00
21 changed files with 353 additions and 240 deletions

View File

@@ -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