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 committed Oct 14, 2020
1 parent 142dfb1 commit 1ffb9c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/man_docs.go
Original file line number Diff line number Diff line change
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 1ffb9c0

Please sign in to comment.