Skip to content

Commit

Permalink
Drop surplus trailing space char in flag names in web
Browse files Browse the repository at this point in the history
Introduced by 92cb2cc (more closely match cobra default val display,
2023-12-05).
  • Loading branch information
muzimuzhi committed Aug 22, 2024
1 parent 91eb340 commit 687a43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/docs/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type flagView struct {
var flagsTemplate = `
<dl class="flags">{{ range . }}
<dt>{{ if .Shorthand }}<code>-{{.Shorthand}}</code>, {{ end }}
<code>--{{.Name}}{{ if .Varname }} &lt;{{.Varname}}&gt;{{ end }}{{.DefValue}} </code></dt>
<code>--{{.Name}}{{ if .Varname }} &lt;{{.Varname}}&gt;{{ end }}{{.DefValue}}</code></dt>
<dd>{{.Usage}}</dd>
{{ end }}</dl>
`
Expand Down

0 comments on commit 687a43f

Please sign in to comment.