Skip to content

Commit

Permalink
Output a blank .TP section after usage to fix rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc authored and jessevdk committed Oct 10, 2015
1 parent 5631e09 commit eff4073
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion help_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ A command
Longer \fBcommand\fP description
\fBUsage\fP: TestMan [OPTIONS] command [command-OPTIONS]
.TP
\fBAliases\fP: cm, cmd
Expand Down
2 changes: 1 addition & 1 deletion man.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func writeManPageCommand(wr io.Writer, name string, root *Command, command *Comm
}

if len(usage) > 0 {
fmt.Fprintf(wr, "\n\\fBUsage\\fP: %s %s\n\n", manQuote(pre), manQuote(usage))
fmt.Fprintf(wr, "\n\\fBUsage\\fP: %s %s\n.TP\n", manQuote(pre), manQuote(usage))
}

if len(command.Aliases) > 0 {
Expand Down

0 comments on commit eff4073

Please sign in to comment.