diff --git a/doc/md_docs.go b/doc/md_docs.go index c4a27c0..f243d47 100644 --- a/doc/md_docs.go +++ b/doc/md_docs.go @@ -105,9 +105,9 @@ func GenMarkdownCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string) link = strings.ReplaceAll(link, " ", "_") buf.WriteString(fmt.Sprintf("* [%s](%s)\t - %s\n", cname, linkHandler(link), child.Short)) } - buf.WriteString("\n") } if !cmd.DisableAutoGenTag { + buf.WriteString("\n") buf.WriteString("###### Auto generated by spf13/cobra on " + time.Now().Format("2-Jan-2006") + "\n") } _, err := buf.WriteTo(w)