Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix man page heading formatting #1041

Merged
merged 1 commit into from Jan 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions template.go
Expand Up @@ -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

Expand Down
7 changes: 1 addition & 6 deletions testdata/expected-doc-full.man
@@ -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
Expand Down
5 changes: 1 addition & 4 deletions testdata/expected-doc-full.md
@@ -1,7 +1,4 @@
% greet(8)

% Harrison <harrison@lolwut.com>
% Oliver Allen <oliver@toyshop.com>
% greet 8

# NAME

Expand Down
3 changes: 1 addition & 2 deletions testdata/expected-doc-no-authors.md
@@ -1,5 +1,4 @@
% greet(8)

% greet 8

# NAME

Expand Down
5 changes: 1 addition & 4 deletions testdata/expected-doc-no-commands.md
@@ -1,7 +1,4 @@
% greet(8)

% Harrison <harrison@lolwut.com>
% Oliver Allen <oliver@toyshop.com>
% greet 8

# NAME

Expand Down
5 changes: 1 addition & 4 deletions testdata/expected-doc-no-flags.md
@@ -1,7 +1,4 @@
% greet(8)

% Harrison <harrison@lolwut.com>
% Oliver Allen <oliver@toyshop.com>
% greet 8

# NAME

Expand Down