Skip to content

Commit

Permalink
Merge pull request #1041 from saschagrunert/man-fix
Browse files Browse the repository at this point in the history
Fix man page heading formatting
  • Loading branch information
asahasrabuddhe authored Jan 16, 2020
2 parents 565ec58 + 5b3508d commit 826e00c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 23 deletions.
4 changes: 1 addition & 3 deletions template.go
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
% greet(8)

% greet 8

# NAME

Expand Down
5 changes: 1 addition & 4 deletions testdata/expected-doc-no-commands.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
% greet(8)

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

# NAME

Expand Down

0 comments on commit 826e00c

Please sign in to comment.