mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
Move newline to inside the DisableAutoGenTag block
Fixes https://github.com/spf13/cobra/issues/2029
This commit is contained in:
parent
0c72800b8d
commit
50ba2caeb5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue