Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jansorg committed Feb 10, 2019
1 parent 6df4e54 commit 909f4c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go-tom/htmlreport/htmlreport.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ func (r *Report) Render(results *report.BucketReport) ([]byte, error) {
return p.Sprintf("%.2f", floatValue)
}
if floatValue, ok := n.(float32); ok {
return r.ctx.LocalePrinter.Sprintf("%.2f", floatValue)
return r.ctx.LocalePrinter.Sprintf(message.Key("float-format", "%.2f"), floatValue)
}
return "u " + r.ctx.LocalePrinter.Sprint(n)
return r.ctx.LocalePrinter.Sprint(n)
},
"formatTime": func(date time.Time) string {
return r.ctx.DateTimePrinter.Time(date)
Expand Down

0 comments on commit 909f4c5

Please sign in to comment.