From eff4073cbc4904bce7b38a3fd661b0e0004874fd Mon Sep 17 00:00:00 2001 From: Travis Cline Date: Fri, 29 May 2015 22:34:43 -0700 Subject: [PATCH] Output a blank .TP section after usage to fix rendering issue --- help_test.go | 2 +- man.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/help_test.go b/help_test.go index 5dbffb6..01792ea 100644 --- a/help_test.go +++ b/help_test.go @@ -254,7 +254,7 @@ A command Longer \fBcommand\fP description \fBUsage\fP: TestMan [OPTIONS] command [command-OPTIONS] - +.TP \fBAliases\fP: cm, cmd diff --git a/man.go b/man.go index 95347d0..cd4cadd 100644 --- a/man.go +++ b/man.go @@ -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 {