HomePhabricator

remove unnecessary newline at the start of RPC help descriptions

Description

remove unnecessary newline at the start of RPC help descriptions

Summary:
D7184 made it unnecessary to start the description of a help message
with a \n, and fixed most messages accordingly. But it missed a few, and
few more were recently backported without removing the extra newline.

Before:

$ src/bitcoin-cli help importmulti
importmulti "requests" ( "options" )

Import addresses/scripts (with private or public keys,...

After:

$ src/bitcoin-cli help importmulti
importmulti "requests" ( "options" )

Import addresses/scripts (with private or public keys,...

Test Plan:
pcregrep -M -r 'RPCHelpMan{\n? *"\w+",\n? *"\\n' src/

Check that the result looks good:

src/bitcoin-cli help getblockcount
src/bitcoin-cli help dumptxoutset
src/bitcoin-cli help generatetodescriptor
src/bitcoin-cli help generateblock
src/bitcoin-cli help getindexinfo
src/bitcoin-cli help addpeeraddress
src/bitcoin-cli help importmulti
src/bitcoin-cli help importdescriptors
src/bitcoin-cli help getaddressinfo
src/bitcoin-cli help upgradewallet

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10154

Details

Provenance
PiRKAuthored on Sep 19 2021, 08:20
PiRKPushed on Sep 20 2021, 08:31
Reviewer
Restricted Project
Differential Revision
D10154: remove unnecessary newline at the start of RPC help descriptions
Parents
rABC748b4d01fe0c: [rpc] fundrawtransaction, walletcreatefundedpsbt lock manually selected coins
Branches
Unknown
Tags
Unknown