diff --git a/Changelog.md b/Changelog.md index 851f39a01..98dababdc 100644 --- a/Changelog.md +++ b/Changelog.md @@ -9,6 +9,7 @@ Bugfixes: * Parser: disallow empty enum definitions. * Type checker: disallow conversion between different enum types. + * Interface JSON: do not include trailing new line. ### 0.4.4 (2016-10-31) diff --git a/libsolidity/interface/InterfaceHandler.cpp b/libsolidity/interface/InterfaceHandler.cpp index de16a3725..1686f9ea6 100644 --- a/libsolidity/interface/InterfaceHandler.cpp +++ b/libsolidity/interface/InterfaceHandler.cpp @@ -103,7 +103,10 @@ string InterfaceHandler::abiInterface(ContractDefinition const& _contractDef) event["inputs"] = params; abi.append(event); } - return Json::FastWriter().write(abi); + + Json::FastWriter writer; + writer.omitEndingLineFeed(); + return writer.write(abi); } string InterfaceHandler::userDocumentation(ContractDefinition const& _contractDef)