Skip to content

Commit

Permalink
wrap output
Browse files Browse the repository at this point in the history
  • Loading branch information
ksimuk committed Apr 6, 2023
1 parent d7bcdde commit ea18215
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func submitResults(urlPost string) {

func getFeedback(results gradescopeResult) string {
var output strings.Builder
output.WriteString("<p>")
output.WriteString("Total Points<br/>")
score := fmt.Sprintf("<b>%d / 100</b><br/>", int64(math.Ceil(results.Score)))
output.WriteString(score)
Expand Down Expand Up @@ -122,6 +123,7 @@ func getFeedback(results gradescopeResult) string {
}
output.WriteString("</p>")
}
output.WriteString("</p>")
return output.String()
}

Expand Down

0 comments on commit ea18215

Please sign in to comment.