diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h index eb4d69fd4..b119a010f 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -406,6 +406,11 @@ public: doIndent(o, indent) << name << '\n'; } else { printOpening(o, "br ") << name; + if (!value) { + // avoid a new line just for the parens + o << ")"; + return o; + } incIndent(o, indent); } if (value) printFullLine(o, indent, value); |