We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f32f7e9 commit fa8ec00Copy full SHA for fa8ec00
src/rpc/util.cpp
@@ -381,6 +381,9 @@ struct Sections {
381
std::string ret;
382
const size_t pad = m_max_pad + 4;
383
for (const auto& s : m_sections) {
384
+ // The left part of a section is assumed to be a single line, usually it is the name of the JSON struct or a
385
+ // brace like {, }, [, or ]
386
+ CHECK_NONFATAL(s.m_left.find('\n') == std::string::npos);
387
if (s.m_right.empty()) {
388
ret += s.m_left;
389
ret += "\n";
0 commit comments