That’s strange, when I run clang-format-diff
, it moves this left, where they should be:
0$ git show -U0 | ./contrib/devtools/clang-format-diff.py -p1 -i -v
1Formatting src/qt/rpcconsole.cpp
2$ git diff
3diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
4index 1408b289f..63820464b 100644
5--- a/src/qt/rpcconsole.cpp
6+++ b/src/qt/rpcconsole.cpp
7@@ -419,12 +419,12 @@ void RPCExecutor::request(const QString &command, const WalletModel* wallet_mode
8
9 // Attempt to execute console-only commands
10 if (!RPCExecutor::executeConsoleOnlyCommand(executableCommand, wallet_model)) {
11- // Send to the RPC command parser if not console-only
12- if (!RPCConsole::RPCExecuteCommandLine(m_node, result, executableCommand, nullptr, wallet_model)) {
13- Q_EMIT reply(RPCConsole::CMD_ERROR, QString("Parse error: unbalanced ' or \""));
14- return;
15- }
16- Q_EMIT reply(RPCConsole::CMD_REPLY, QString::fromStdString(result));
17+ // Send to the RPC command parser if not console-only
18+ if (!RPCConsole::RPCExecuteCommandLine(m_node, result, executableCommand, nullptr, wallet_model)) {
19+ Q_EMIT reply(RPCConsole::CMD_ERROR, QString("Parse error: unbalanced ' or \""));
20+ return;
21+ }
22+ Q_EMIT reply(RPCConsole::CMD_REPLY, QString::fromStdString(result));
23 }
24 }
25 catch (UniValue& objError)
26@@ -492,10 +492,10 @@ bool RPCExecutor::executeConsoleOnlyCommand(const std::string& command, const Wa
27 Q_EMIT reply(RPCConsole::CMD_ERROR, QString("Error: could not generate new address"));
28 } else {
29 if (!RPCConsole::RPCExecuteCommandLine(m_node, result, "generatetoaddress " + nblocks + " " + address + " " + maxtries + "\n", /*pstrFilteredOut=*/nullptr, wallet_model)) {
30- Q_EMIT reply(RPCConsole::CMD_ERROR, QString("Error: could not generate blocks"));
31+ Q_EMIT reply(RPCConsole::CMD_ERROR, QString("Error: could not generate blocks"));
32 } else {
33- std::string answer = "{\n \"address\": \"" + address + "\",\n \"blocks\": " + result + "\n}";
34- Q_EMIT reply(RPCConsole::CMD_REPLY, QString::fromStdString("\n" + answer + "\n\n"));
35+ std::string answer = "{\n \"address\": \"" + address + "\",\n \"blocks\": " + result + "\n}";
36+ Q_EMIT reply(RPCConsole::CMD_REPLY, QString::fromStdString("\n" + answer + "\n\n"));
37 }
38 }
39 return true;