From 6645e92c4335a335cc22bd0fc91d1a14cfea37d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Tue, 1 Aug 2023 14:53:55 +0200 Subject: [PATCH] Do not leave trailing whitespace on empty lines when printing objects --- libyul/Object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libyul/Object.cpp b/libyul/Object.cpp index 96d60fc77..0d3d66c8e 100644 --- a/libyul/Object.cpp +++ b/libyul/Object.cpp @@ -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