From 5af6a685b88e8229a94b50ac7b98b92e1f33b4c6 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 15 Jun 2020 14:42:41 +0300 Subject: [PATCH] vfmt: fix for 'File abc could not be read' bug --- cmd/tools/vfmt.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/vfmt.v b/cmd/tools/vfmt.v index 9dce73c726..b3fa461c75 100644 --- a/cmd/tools/vfmt.v +++ b/cmd/tools/vfmt.v @@ -119,7 +119,7 @@ fn main() { if worker_result.output.contains(formatted_file_token) { wresult := worker_result.output.split(formatted_file_token) formatted_warn_errs := wresult[0] - formatted_file_path := wresult[1] + formatted_file_path := wresult[1].trim_right('\n\r') foptions.post_process_file(fpath, formatted_file_path) if formatted_warn_errs.len > 0 { eprintln(formatted_warn_errs)