fix manpage building with new go-md2man (#1255)

This addresses #1049 by changing the format of the generated
Markdown input.
This commit is contained in:
Sascha Steinbiss 2020-10-18 20:59:26 +02:00 committed by GitHub
parent f32f4ef15b
commit 86f8bfd7fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))