Skip to content

Commit 1ffb9c0

Browse files
committed
fix manpage building with new go-md2man
This addresses spf13#1049 by changing the format of the generated Markdown input.
1 parent 142dfb1 commit 1ffb9c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/man_docs.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ func manPreamble(buf *bytes.Buffer, header *GenManHeader, cmd *cobra.Command, da
145145
description = cmd.Short
146146
}
147147

148-
buf.WriteString(fmt.Sprintf(`%% %s(%s)%s
149-
%% %s
150-
%% %s
148+
buf.WriteString(fmt.Sprintf(`%% "%s" "%s" "%s" "%s" "%s"
151149
# NAME
152150
`, header.Title, header.Section, header.date, header.Source, header.Manual))
153151
buf.WriteString(fmt.Sprintf("%s \\- %s\n\n", dashedName, cmd.Short))

0 commit comments

Comments
 (0)