diff options
author | chriseth <chris@ethereum.org> | 2016-11-15 16:08:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-15 16:08:32 +0800 |
commit | c1b1efafdb30f11c9482e3ba95c5321790762215 (patch) | |
tree | f8842ba3b6dc91c3f6cd961a17d1b93e1bd8897f /libsolidity/interface/InterfaceHandler.cpp | |
parent | 42617cb8ddc844e3b721d25ed1096d206145b59b (diff) | |
parent | ac46834d7d9e756388803e418e0e6eea336e66ba (diff) | |
download | dexon-solidity-c1b1efafdb30f11c9482e3ba95c5321790762215.tar dexon-solidity-c1b1efafdb30f11c9482e3ba95c5321790762215.tar.gz dexon-solidity-c1b1efafdb30f11c9482e3ba95c5321790762215.tar.bz2 dexon-solidity-c1b1efafdb30f11c9482e3ba95c5321790762215.tar.lz dexon-solidity-c1b1efafdb30f11c9482e3ba95c5321790762215.tar.xz dexon-solidity-c1b1efafdb30f11c9482e3ba95c5321790762215.tar.zst dexon-solidity-c1b1efafdb30f11c9482e3ba95c5321790762215.zip |
Merge pull request #760 from axic/fix/omit-newline-in-interface
Do not include a trailing new line in the ABI JSON output
Diffstat (limited to 'libsolidity/interface/InterfaceHandler.cpp')
-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) |