diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-07-29 05:06:30 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-15 10:20:38 +0800 |
commit | ac46834d7d9e756388803e418e0e6eea336e66ba (patch) | |
tree | 59b83aafd8b06a4f4876695e5c059e72aea36107 /libsolidity/interface | |
parent | 58e75c7a48f8166cca41e9017dad351113952ab5 (diff) | |
download | dexon-solidity-ac46834d7d9e756388803e418e0e6eea336e66ba.tar.gz dexon-solidity-ac46834d7d9e756388803e418e0e6eea336e66ba.tar.zst dexon-solidity-ac46834d7d9e756388803e418e0e6eea336e66ba.zip |
Do not include a trailing new line in the ABI JSON output
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/InterfaceHandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libsolidity/interface/InterfaceHandler.cpp b/libsolidity/interface/InterfaceHandler.cpp index de16a372..1686f9ea 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) |