From bc704c854f270f5b53eaa6980c76950ad86410c7 Mon Sep 17 00:00:00 2001 From: xuri Date: Sat, 15 Aug 2020 10:41:45 +0000 Subject: [PATCH] update stream writer fields offset --- stream.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stream.go b/stream.go index 19f5ca7..83b25f7 100644 --- a/stream.go +++ b/stream.go @@ -86,7 +86,7 @@ func (f *File) NewStreamWriter(sheet string) (*StreamWriter, error) { return nil, err } sw.rawData.WriteString(XMLHeader + ``) return sw, err } @@ -376,9 +376,9 @@ func writeCell(buf *bufferedWriter, c xlsxC) { // Flush ending the streaming writing process. func (sw *StreamWriter) Flush() error { sw.rawData.WriteString(``) - bulkAppendFields(&sw.rawData, sw.worksheet, 7, 37) + bulkAppendFields(&sw.rawData, sw.worksheet, 8, 38) sw.rawData.WriteString(sw.tableParts) - bulkAppendFields(&sw.rawData, sw.worksheet, 39, 39) + bulkAppendFields(&sw.rawData, sw.worksheet, 40, 40) sw.rawData.WriteString(``) if err := sw.rawData.Flush(); err != nil { return err