Skip to content

Commit

Permalink
fix manpage building with new go-md2man
Browse files Browse the repository at this point in the history
This addresses spf13#1049 by changing the format of the generated
Markdown input.
  • Loading branch information
satta authored and drakkan committed Oct 17, 2020
1 parent 142dfb1 commit 7f8581c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/man_docs.go
Expand Up @@ -145,9 +145,7 @@ func manPreamble(buf *bytes.Buffer, header *GenManHeader, cmd *cobra.Command, da
description = cmd.Short
}

buf.WriteString(fmt.Sprintf(`%% %s(%s)%s
%% %s
%% %s
buf.WriteString(fmt.Sprintf(`%% "%s" "%s" "%s" "%s" "%s"
# NAME
`, header.Title, header.Section, header.date, header.Source, header.Manual))
buf.WriteString(fmt.Sprintf("%s \\- %s\n\n", dashedName, cmd.Short))
Expand Down

0 comments on commit 7f8581c

Please sign in to comment.