mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
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:
parent
f32f4ef15b
commit
86f8bfd7fe
1 changed files with 1 additions and 3 deletions
|
@ -145,9 +145,7 @@ func manPreamble(buf *bytes.Buffer, header *GenManHeader, cmd *cobra.Command, da
|
||||||
description = cmd.Short
|
description = cmd.Short
|
||||||
}
|
}
|
||||||
|
|
||||||
buf.WriteString(fmt.Sprintf(`%% %s(%s)%s
|
buf.WriteString(fmt.Sprintf(`%% "%s" "%s" "%s" "%s" "%s"
|
||||||
%% %s
|
|
||||||
%% %s
|
|
||||||
# NAME
|
# NAME
|
||||||
`, header.Title, header.Section, header.date, header.Source, header.Manual))
|
`, header.Title, header.Section, header.date, header.Source, header.Manual))
|
||||||
buf.WriteString(fmt.Sprintf("%s \\- %s\n\n", dashedName, cmd.Short))
|
buf.WriteString(fmt.Sprintf("%s \\- %s\n\n", dashedName, cmd.Short))
|
||||||
|
|
Loading…
Reference in a new issue