From ebea684ae5c60776d4d8364b7360d0c0603cb3b0 Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 18 Jul 2022 00:21:34 +0800 Subject: Fix potential file corrupted and change worksheet name case-insensitive - Using sheet ID instead of sheet index when delete the cell in calculation chain - Update documentation for exported functions - Using `sheet` represent the sheet name in the function parameters --- stream.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stream.go') diff --git a/stream.go b/stream.go index 0db2438..1a1af24 100644 --- a/stream.go +++ b/stream.go @@ -106,11 +106,11 @@ func (f *File) NewStreamWriter(sheet string) (*StreamWriter, error) { return nil, err } - sheetPath := f.sheetMap[trimSheetName(sheet)] + sheetXMLPath, _ := f.getSheetXMLPath(sheet) if f.streams == nil { f.streams = make(map[string]*StreamWriter) } - f.streams[sheetPath] = sw + f.streams[sheetXMLPath] = sw _, _ = sw.rawData.WriteString(xml.Header + `