diff --git a/pkg/cmd/gist/view/view.go b/pkg/cmd/gist/view/view.go index 4f95af803..69186ae59 100644 --- a/pkg/cmd/gist/view/view.go +++ b/pkg/cmd/gist/view/view.go @@ -122,9 +122,9 @@ func viewRun(opts *ViewOptions) error { content = rendered } } - out += fmt.Sprintf("%s", content) + out += content if opts.Filename == "" { - out += fmt.Sprintf("\n\n") + out += "\n\n" } outs = append(outs, out)