Skip to content

Commit

Permalink
Move newline to inside the DisableAutoGenTag block
Browse files Browse the repository at this point in the history
Fixes #2029
  • Loading branch information
dramich committed Sep 20, 2023
1 parent 0c72800 commit 50ba2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/md_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 50ba2ca

Please sign in to comment.