diff --git a/cmd/d2/help.go b/cmd/d2/help.go index 2d2ec3ce6..35ce3420f 100644 --- a/cmd/d2/help.go +++ b/cmd/d2/help.go @@ -85,10 +85,12 @@ func longLayoutHelp(ctx context.Context, ms *xmain.State) error { return err } + if !strings.HasSuffix(pluginInfo.LongHelp, "\n") { + pluginInfo.LongHelp += "\n" + } fmt.Fprintf(ms.Stdout, `%s (%s): -%s -`, pluginInfo.Name, pluginLocation, pluginInfo.LongHelp) +%s`, pluginInfo.Name, pluginLocation, pluginInfo.LongHelp) return nil }