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`.
This commit is contained in:
Camelid 2020-12-27 11:37:59 -08:00
parent 230441e1a5
commit 8ff4cc40e6
2 changed files with 2 additions and 2 deletions

View file

@ -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
}

View file

@ -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
}