From f7bd0729c65fc82305328f7ac8fbaf329d1075c0 Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 1 Jul 2020 22:41:29 +0800 Subject: Resolve #32, fix missing leading/leading spaces when working with SST --- rows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rows.go') diff --git a/rows.go b/rows.go index b89d916..392cc5d 100644 --- a/rows.go +++ b/rows.go @@ -292,8 +292,8 @@ func (f *File) sharedStringsReader() *xlsxSST { } f.SharedStrings = &sharedStrings for i := range sharedStrings.SI { - if sharedStrings.SI[i].T != "" { - f.sharedStringsMap[sharedStrings.SI[i].T] = i + if sharedStrings.SI[i].T != nil { + f.sharedStringsMap[sharedStrings.SI[i].T.Val] = i } } f.addContentTypePart(0, "sharedStrings") -- cgit v1.2.1