Do not leave trailing whitespace on empty lines when printing objects

This commit is contained in:
Kamil Śliwak 2023-08-01 14:53:55 +02:00
parent 996e9cacd0
commit 6645e92c43

View File

@ -72,7 +72,7 @@ std::string Object::toString(
for (auto const& obj: subObjects)
inner += "\n" + obj->toString(_dialect, _debugInfoSelection, _soliditySourceProvider);
return useSrcComment + "object \"" + name.str() + "\" {\n" + indent(inner, true /* _indentEmptyLines */) + "\n}";
return useSrcComment + "object \"" + name.str() + "\" {\n" + indent(inner) + "\n}";
}
Json::Value Data::toJson() const