diff --git a/src/serialization/string_utils.cpp b/src/serialization/string_utils.cpp index b20b5a12c19..ee94f3fbded 100644 --- a/src/serialization/string_utils.cpp +++ b/src/serialization/string_utils.cpp @@ -747,16 +747,16 @@ bool wildcard_string_match(const std::string& str, const std::string& match) { std::string indent(const std::string& string, size_t indent_size) { - if(string.empty()) { - return ""; - } - if(indent_size == 0) { return string; } const std::string indent(indent_size, ' '); + if(string.empty()) { + return indent; + } + const std::vector& lines = split(string, '\x0A', 0); std::string res;