From 22e70ef7fe148ba9ab5e20a44de1dbf2c484850f Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 28 Jul 2016 18:49:04 +0100 Subject: [PATCH] Be prepared when the interface output won't have a trailing new-line --- src/app/renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/renderer.js b/src/app/renderer.js index 05f3073dd3..d811dc079d 100644 --- a/src/app/renderer.js +++ b/src/app/renderer.js @@ -77,7 +77,7 @@ function Renderer (editor, executionContext, updateFiles, transactionDebugger) { if (contract.bytecode) { $contractOutput.append(textRow('Bytecode', contract.bytecode)); } - if (contract['interface'] !== '[]\n') { + if ((contract['interface'] !== '[]\n') && (contract['interface'] !== '[]')) { $contractOutput.append(textRow('Interface', contract['interface'])); } if (contract.bytecode) {