From c148a3b6dca2e066b2adf9fa4db4052a39163035 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 16 Feb 2018 13:36:37 -0800 Subject: [PATCH] Emit JS with some more newlines Hopefully helps a bit with readability! --- crates/wasm-bindgen-cli-support/src/js.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/wasm-bindgen-cli-support/src/js.rs b/crates/wasm-bindgen-cli-support/src/js.rs index 49329105..65f12feb 100644 --- a/crates/wasm-bindgen-cli-support/src/js.rs +++ b/crates/wasm-bindgen-cli-support/src/js.rs @@ -52,7 +52,7 @@ impl<'a> Context<'a> { if !self.wasm_import_needed(name) { return } - let global = format!("export const {} = {};", name, f(self)); + let global = format!("export const {} = {};\n", name, f(self)); self.globals.push_str(&global); };