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 14, 2020
1 parent ee9b3fc commit bce3dd0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion template.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ OPTIONS:
{{end}}{{end}}
`

var MarkdownDocTemplate = `% {{ .App.Name }}(8){{ if .App.Description }} {{ .App.Description }}{{ end }}
var MarkdownDocTemplate = `% {{ .App.Name }} 8
{{ range $a := .App.Authors }}
% {{ $a }}{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion testdata/expected-doc-full.man
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.nh
.TH greet(8)
.TH greet 8

.SH Harrison harrison@lolwut.com
\[la]mailto:harrison@lolwut.com\[ra]
Expand Down
2 changes: 1 addition & 1 deletion testdata/expected-doc-full.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% greet(8)
% greet 8

% Harrison <harrison@lolwut.com>
% Oliver Allen <oliver@toyshop.com>
Expand Down
2 changes: 1 addition & 1 deletion testdata/expected-doc-no-authors.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% greet(8)
% greet 8


# NAME
Expand Down
2 changes: 1 addition & 1 deletion testdata/expected-doc-no-commands.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% greet(8)
% greet 8

% Harrison <harrison@lolwut.com>
% Oliver Allen <oliver@toyshop.com>
Expand Down
2 changes: 1 addition & 1 deletion testdata/expected-doc-no-flags.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% greet(8)
% greet 8

% Harrison <harrison@lolwut.com>
% Oliver Allen <oliver@toyshop.com>
Expand Down

0 comments on commit bce3dd0

Please sign in to comment.