Skip to content

Commit

Permalink
Improve print format
Browse files Browse the repository at this point in the history
  • Loading branch information
hashworks committed May 31, 2020
1 parent 96ec49a commit 7c44be6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/output.go
Expand Up @@ -179,7 +179,7 @@ func outputExtInfoData(id string, perPageFlag, pageFlag int, isP2PFlag, infoFlag
} else {
fmt.Printf("%s [%s] r", extInfo.Title, strings.ToUpper(extInfo.Type))
}
fmt.Printf("ated with %s★, overall rating is %2.1f★.\n", extInfo.OwnRating, extInfo.Rating)
fmt.Printf("ated with %d★, overall rating is %2.1f★.\n", extInfo.OwnRating, extInfo.Rating)
multipleItems = true
}

Expand Down
4 changes: 2 additions & 2 deletions src/release.go
Expand Up @@ -109,13 +109,13 @@ func showComments(query string, isP2P bool, perPage, page int) {
if commentCount > 0 {
pagination := data.Pagination
if pagination.TotalPages > 1 {
fmt.Printf("Comments %d of %s (Page %d of %d):\n\n", commentCount, data.TotalCount, pagination.CurrentPage, pagination.TotalPages)
fmt.Printf("Comments %d of %d (Page %d of %d):\n\n", commentCount, data.TotalCount, pagination.CurrentPage, pagination.TotalPages)
} else {
fmt.Println("Comments: ")
}
for i := 0; i < commentCount; i++ {
if i > 0 {
fmt.Println("----------------------------------------------------------------\n")
fmt.Print("----------------------------------------------------------------\n\n")
}
printComment(data.List[i])
fmt.Print("\n")
Expand Down

0 comments on commit 7c44be6

Please sign in to comment.