From bd13ef4badc0240373d7b3dee85dff537c9f6be0 Mon Sep 17 00:00:00 2001 From: Zander Hill Date: Mon, 23 Sep 2019 16:49:12 +0100 Subject: [PATCH] Fix indentation for help target --- help/help.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/help/help.go b/help/help.go index 8d470aa..536eaee 100644 --- a/help/help.go +++ b/help/help.go @@ -23,7 +23,7 @@ func OutputAllShort(r io.Reader, w io.Writer, targets []string) error { return err } - width := targetWidth(comments) + width := targetWidth(comments) + 15 fmt.Fprintf(w, "\n") for _, c := range comments { if c.Target == "" { @@ -136,5 +136,5 @@ func printShort(w io.Writer, c parser.Comment, width int) (int, error) { comment = comment + " (default)" } - return fmt.Fprintf(w, " %-*s %-s\n", width+2, color.HiBlueString(c.Target), comment) + return fmt.Fprintf(w, " %-*s %-s\n", width+2, color.HiBlueString(c.Target), indent(indent(comment))) }