Merge pull request #1041 from saschagrunert/man-fix
Fix man page heading formatting
This commit is contained in:
commit
826e00cf75
@ -71,9 +71,7 @@ OPTIONS:
|
|||||||
{{end}}{{end}}
|
{{end}}{{end}}
|
||||||
`
|
`
|
||||||
|
|
||||||
var MarkdownDocTemplate = `% {{ .App.Name }}(8){{ if .App.Description }} {{ .App.Description }}{{ end }}
|
var MarkdownDocTemplate = `% {{ .App.Name }} 8
|
||||||
{{ range $a := .App.Authors }}
|
|
||||||
% {{ $a }}{{ end }}
|
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
|
7
testdata/expected-doc-full.man
vendored
7
testdata/expected-doc-full.man
vendored
@ -1,10 +1,5 @@
|
|||||||
.nh
|
.nh
|
||||||
.TH greet(8)
|
.TH greet 8
|
||||||
|
|
||||||
.SH Harrison harrison@lolwut.com
|
|
||||||
\[la]mailto:harrison@lolwut.com\[ra]
|
|
||||||
Oliver Allen oliver@toyshop.com
|
|
||||||
\[la]mailto:oliver@toyshop.com\[ra]
|
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
.PP
|
.PP
|
||||||
|
5
testdata/expected-doc-full.md
vendored
5
testdata/expected-doc-full.md
vendored
@ -1,7 +1,4 @@
|
|||||||
% greet(8)
|
% greet 8
|
||||||
|
|
||||||
% Harrison <harrison@lolwut.com>
|
|
||||||
% Oliver Allen <oliver@toyshop.com>
|
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
|
3
testdata/expected-doc-no-authors.md
vendored
3
testdata/expected-doc-no-authors.md
vendored
@ -1,5 +1,4 @@
|
|||||||
% greet(8)
|
% greet 8
|
||||||
|
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
|
5
testdata/expected-doc-no-commands.md
vendored
5
testdata/expected-doc-no-commands.md
vendored
@ -1,7 +1,4 @@
|
|||||||
% greet(8)
|
% greet 8
|
||||||
|
|
||||||
% Harrison <harrison@lolwut.com>
|
|
||||||
% Oliver Allen <oliver@toyshop.com>
|
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
|
5
testdata/expected-doc-no-flags.md
vendored
5
testdata/expected-doc-no-flags.md
vendored
@ -1,7 +1,4 @@
|
|||||||
% greet(8)
|
% greet 8
|
||||||
|
|
||||||
% Harrison <harrison@lolwut.com>
|
|
||||||
% Oliver Allen <oliver@toyshop.com>
|
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user