From dde1b89c5e3aa5cb6c1230e36d1064fb9714dcc4 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 28 Aug 2020 19:02:28 +0300 Subject: [PATCH] vup: remove empty new line on unix --- cmd/tools/vup.v | 2 +- vlib/os/os_windows.c.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tools/vup.v b/cmd/tools/vup.v index 9b29e81063..87072375f3 100644 --- a/cmd/tools/vup.v +++ b/cmd/tools/vup.v @@ -66,7 +66,7 @@ fn (app App) recompile_v() { println('> recompiling v itself with `$vself` ...') } if self_result := os.exec(vself) { - println(self_result.output) + println(self_result.output.trim_space()) if self_result.exit_code == 0 { return } diff --git a/vlib/os/os_windows.c.v b/vlib/os/os_windows.c.v index 1f0adf07d4..0850a5857e 100644 --- a/vlib/os/os_windows.c.v +++ b/vlib/os/os_windows.c.v @@ -281,7 +281,7 @@ pub fn exec(cmd string) ?Result { break } } - soutput := read_data.str().trim_space() + soutput := read_data.str() read_data.free() exit_code := u32(0) C.WaitForSingleObject(proc_info.h_process, C.INFINITE)