diff --git a/col.go b/col.go index 7a04e59..c18f06b 100644 --- a/col.go +++ b/col.go @@ -55,7 +55,6 @@ func (xf *XfRk) String(wb *WorkBook) string { if !isFloat { f = float64(i) } - fmt.Println(formatter.str, "======") t := timeFromExcelTime(f, wb.dateMode == 1) return yymmdd.Format(t, formatter.str) } diff --git a/workbook.go b/workbook.go index 2bb0486..e8199b7 100644 --- a/workbook.go +++ b/workbook.go @@ -199,7 +199,7 @@ func (w *WorkBook) get_string(buf io.ReadSeeker, size uint16) (res string, err e err = io.EOF } - var bts1 = make([]uint16, size) + var bts1 = make([]uint16, n) for k, v := range bts[:n] { bts1[k] = uint16(v) }