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}}
|
||||
`
|
||||
|
||||
var MarkdownDocTemplate = `% {{ .App.Name }}(8){{ if .App.Description }} {{ .App.Description }}{{ end }}
|
||||
{{ range $a := .App.Authors }}
|
||||
% {{ $a }}{{ end }}
|
||||
var MarkdownDocTemplate = `% {{ .App.Name }} 8
|
||||
|
||||
# NAME
|
||||
|
||||
|
7
testdata/expected-doc-full.man
vendored
7
testdata/expected-doc-full.man
vendored
@ -1,10 +1,5 @@
|
||||
.nh
|
||||
.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]
|
||||
.TH greet 8
|
||||
|
||||
.SH NAME
|
||||
.PP
|
||||
|
5
testdata/expected-doc-full.md
vendored
5
testdata/expected-doc-full.md
vendored
@ -1,7 +1,4 @@
|
||||
% greet(8)
|
||||
|
||||
% Harrison <harrison@lolwut.com>
|
||||
% Oliver Allen <oliver@toyshop.com>
|
||||
% greet 8
|
||||
|
||||
# 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
|
||||
|
||||
|
5
testdata/expected-doc-no-commands.md
vendored
5
testdata/expected-doc-no-commands.md
vendored
@ -1,7 +1,4 @@
|
||||
% greet(8)
|
||||
|
||||
% Harrison <harrison@lolwut.com>
|
||||
% Oliver Allen <oliver@toyshop.com>
|
||||
% greet 8
|
||||
|
||||
# NAME
|
||||
|
||||
|
5
testdata/expected-doc-no-flags.md
vendored
5
testdata/expected-doc-no-flags.md
vendored
@ -1,7 +1,4 @@
|
||||
% greet(8)
|
||||
|
||||
% Harrison <harrison@lolwut.com>
|
||||
% Oliver Allen <oliver@toyshop.com>
|
||||
% greet 8
|
||||
|
||||
# NAME
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user