From 4337bfd3b013fb60f8171b53b49f0f4b8c4bebc0 Mon Sep 17 00:00:00 2001 From: Aaron Bennett <10927621+abennett@users.noreply.github.com> Date: Fri, 26 Jan 2024 11:30:49 -0500 Subject: [PATCH] include a newline between different categories --- template.go | 1 + 1 file changed, 1 insertion(+) diff --git a/template.go b/template.go index 8981ab447d..c150403a12 100644 --- a/template.go +++ b/template.go @@ -10,6 +10,7 @@ var authorsTemplate = `{{with $length := len .Authors}}{{if ne 1 $length}}S{{end var visibleCommandTemplate = `{{ $cv := offsetCommands .VisibleCommands 5}}{{range .VisibleCommands}} {{$s := join .Names ", "}}{{$s}}{{ $sp := subtract $cv (offset $s 3) }}{{ indent $sp ""}}{{wrap .Usage $cv}}{{end}}` var visibleCommandCategoryTemplate = `{{range .VisibleCategories}}{{if .Name}} + {{.Name}}:{{range .VisibleCommands}} {{join .Names ", "}}{{"\t"}}{{.Usage}}{{end}}{{else}}{{template "visibleCommandTemplate" .}}{{end}}{{end}}` var visibleFlagCategoryTemplate = `{{range .VisibleFlagCategories}}