mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not leave trailing whitespace on empty lines when printing objects
This commit is contained in:
parent
996e9cacd0
commit
6645e92c43
@ -72,7 +72,7 @@ std::string Object::toString(
|
|||||||
for (auto const& obj: subObjects)
|
for (auto const& obj: subObjects)
|
||||||
inner += "\n" + obj->toString(_dialect, _debugInfoSelection, _soliditySourceProvider);
|
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
|
Json::Value Data::toJson() const
|
||||||
|
Loading…
Reference in New Issue
Block a user