Skip to content

Commit

Permalink
Do not leave trailing whitespace on empty lines when printing objects
Browse files Browse the repository at this point in the history
  • Loading branch information
cameel committed Oct 13, 2023
1 parent 8c619dd commit b56e26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libyul/Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b56e26a

Please sign in to comment.