From 8ff4cc40e642cc90715fabc5bdfc04bc698e74d0 Mon Sep 17 00:00:00 2001 From: Camelid Date: Sun, 27 Dec 2020 11:37:59 -0800 Subject: [PATCH] view: Add missing newline Add a newline at the end of the 'View this {issue, pull request} on GitHub' message. `gh repo view` already had a newline at the end, so this only changes `issue view` and `pr view`. --- pkg/cmd/issue/view/view.go | 2 +- pkg/cmd/pr/view/view.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/issue/view/view.go b/pkg/cmd/issue/view/view.go index e8ff2b274..811f88088 100644 --- a/pkg/cmd/issue/view/view.go +++ b/pkg/cmd/issue/view/view.go @@ -204,7 +204,7 @@ func printHumanIssuePreview(io *iostreams.IOStreams, issue *api.Issue) error { } // Footer - fmt.Fprintf(out, cs.Gray("View this issue on GitHub: %s"), issue.URL) + fmt.Fprintf(out, cs.Gray("View this issue on GitHub: %s\n"), issue.URL) return nil } diff --git a/pkg/cmd/pr/view/view.go b/pkg/cmd/pr/view/view.go index 8384d7af3..ca3f0580d 100644 --- a/pkg/cmd/pr/view/view.go +++ b/pkg/cmd/pr/view/view.go @@ -223,7 +223,7 @@ func printHumanPrPreview(io *iostreams.IOStreams, pr *api.PullRequest) error { } // Footer - fmt.Fprintf(out, cs.Gray("View this pull request on GitHub: %s"), pr.URL) + fmt.Fprintf(out, cs.Gray("View this pull request on GitHub: %s\n"), pr.URL) return nil }