From 3658faafae727de5abcbbae170c889cdbe3cc338 Mon Sep 17 00:00:00 2001 From: John Guo Date: Fri, 17 Dec 2021 15:47:48 +0800 Subject: [PATCH] improve help content printing for package gcmd --- os/gcmd/gcmd_command_help.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/os/gcmd/gcmd_command_help.go b/os/gcmd/gcmd_command_help.go index 82a67e4ad..b8cc1f8e4 100644 --- a/os/gcmd/gcmd_command_help.go +++ b/os/gcmd/gcmd_command_help.go @@ -189,8 +189,9 @@ func (c *Command) Print() { buffer.WriteString(lineStr) buffer.WriteString("\n") } - - fmt.Println(buffer.String()) + content := buffer.String() + content = gstr.Replace(content, "\t", " ") + fmt.Println(content) } type printLineBriefInput struct {