From 687a43fe89a6c52f419e48205062eb8f89d4f776 Mon Sep 17 00:00:00 2001 From: Yukai Chou Date: Wed, 21 Aug 2024 11:49:31 +0800 Subject: [PATCH] Drop surplus trailing space char in flag names in web Introduced by 92cb2cc7 (more closely match cobra default val display, 2023-12-05). --- internal/docs/markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/docs/markdown.go b/internal/docs/markdown.go index 825db931c..7ae8c6862 100644 --- a/internal/docs/markdown.go +++ b/internal/docs/markdown.go @@ -103,7 +103,7 @@ type flagView struct { var flagsTemplate = `
{{ range . }}
{{ if .Shorthand }}-{{.Shorthand}}, {{ end }} - --{{.Name}}{{ if .Varname }} <{{.Varname}}>{{ end }}{{.DefValue}}
+ --{{.Name}}{{ if .Varname }} <{{.Varname}}>{{ end }}{{.DefValue}}
{{.Usage}}
{{ end }}
`