From 9e012480b2fe7146ff1280899d829d09762a2d3b Mon Sep 17 00:00:00 2001 From: programmingkidx Date: Sun, 10 May 2026 20:20:45 -0400 Subject: [PATCH] term: remove extra spaces sent to methods in ok_message(), fail_message(), and warn_message() (#27128) --- vlib/term/term.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/term/term.v b/vlib/term/term.v index bac981a59..7a3ca1988 100644 --- a/vlib/term/term.v +++ b/vlib/term/term.v @@ -58,7 +58,7 @@ pub fn failed(s string) string { // If colors are not allowed, returns a given string. pub fn ok_message(s string) string { if can_show_color_on_stdout() { - return green(' ${s} ') + return green('${s}') } return s } @@ -66,14 +66,14 @@ pub fn ok_message(s string) string { // fail_message returns a colored string with red color. // If colors are not allowed, returns a given string. pub fn fail_message(s string) string { - return failed(' ${s} ') + return failed('${s}') } // warn_message returns a colored string with yellow color. // If colors are not allowed, returns a given string. pub fn warn_message(s string) string { if can_show_color_on_stdout() { - return bright_yellow(' ${s} ') + return bright_yellow('${s}') } return s } -- 2.39.5