修复数值通用格式格式化错误

This commit is contained in:
chen.s.g
2018-06-11 14:02:42 +08:00
parent 58e631a6ed
commit d591299625
2 changed files with 7 additions and 2 deletions

4
col.go
View File

@@ -180,6 +180,10 @@ func (c *NumberCol) Debug(wb *WorkBook) {
}
func (c *NumberCol) String(wb *WorkBook) []string {
if wb.Debug {
fmt.Printf("number col dump:%#+v\n", c)
}
if v, ok := wb.Format(c.Index, c.Float); ok {
return []string{v}
}