Skip to content

Commit

Permalink
fix manpage building with new go-md2man (#1255)
Browse files Browse the repository at this point in the history
This addresses #1049 by changing the format of the generated
Markdown input.
  • Loading branch information
satta committed Oct 18, 2020
1 parent f32f4ef commit 86f8bfd
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 86f8bfd

Please sign in to comment.