From 63a567624a97309e4426a56e8ccf55d5c49ad898 Mon Sep 17 00:00:00 2001 From: Liu Ming Date: Wed, 26 Jul 2017 09:39:26 +0800 Subject: [PATCH] fix part of issue #25 --- col.go | 1 - workbook.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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) }