Merge pull request #760 from axic/fix/omit-newline-in-interface

Do not include a trailing new line in the ABI JSON output
This commit is contained in:
chriseth 2016-11-15 09:08:32 +01:00 committed by GitHub
commit c1b1efafdb
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Bugfixes:
* Parser: disallow empty enum definitions. * Parser: disallow empty enum definitions.
* Type checker: disallow conversion between different enum types. * Type checker: disallow conversion between different enum types.
* Interface JSON: do not include trailing new line.
### 0.4.4 (2016-10-31) ### 0.4.4 (2016-10-31)

View File

@ -103,7 +103,10 @@ string InterfaceHandler::abiInterface(ContractDefinition const& _contractDef)
event["inputs"] = params; event["inputs"] = params;
abi.append(event); abi.append(event);
} }
return Json::FastWriter().write(abi);
Json::FastWriter writer;
writer.omitEndingLineFeed();
return writer.write(abi);
} }
string InterfaceHandler::userDocumentation(ContractDefinition const& _contractDef) string InterfaceHandler::userDocumentation(ContractDefinition const& _contractDef)