From eca65caadcddf43b2dace111bd7e4b0a2a9556c2 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Thu, 2 Apr 2020 15:12:32 +0000 Subject: Bugfix: RPC: Add missing commas and correct indentation of explicit ELISION --- src/rpc/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rpc/util.cpp') diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index 32e0e1ec27..f7038aba8f 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -606,11 +606,11 @@ void RPCResult::ToSections(Sections& sections, const OuterType outer_type, const switch (m_type) { case Type::ELISION: { // If the inner result is empty, use three dots for elision - sections.PushSection({indent_next + "...", m_description}); + sections.PushSection({indent + "..." + maybe_separator, m_description}); return; } case Type::NONE: { - sections.PushSection({indent + "None", Description("json null")}); + sections.PushSection({indent + "None" + maybe_separator, Description("json null")}); return; } case Type::STR: { -- cgit v1.2.3