Skip to content

Commit

Permalink
Fix man page heading formatting
Browse files Browse the repository at this point in the history
Closes #1040

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
  • Loading branch information
saschagrunert committed Jan 15, 2020
1 parent ee9b3fc commit 5b3508d
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 5b3508d

Please sign in to comment.