From 5dd0b4aec2931079e064f1fb393b034ce4934540 Mon Sep 17 00:00:00 2001 From: xuri Date: Fri, 6 Nov 2020 20:03:13 +0800 Subject: using POSIX directory separator in zip path with Windows --- rows.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'rows.go') diff --git a/rows.go b/rows.go index 12d5ddf..63b3947 100644 --- a/rows.go +++ b/rows.go @@ -19,9 +19,7 @@ import ( "io" "log" "math" - "path/filepath" "strconv" - "strings" ) // GetRows return all the rows in a sheet by given worksheet name (case @@ -292,8 +290,7 @@ func (f *File) sharedStringsReader() *xlsxSST { var err error f.Lock() defer f.Unlock() - wbPath := f.getWorkbookPath() - relPath := strings.TrimPrefix(filepath.Join(filepath.Dir(wbPath), "_rels", filepath.Base(wbPath)+".rels"), string(filepath.Separator)) + relPath := f.getWorkbookRelsPath() if f.SharedStrings == nil { var sharedStrings xlsxSST ss := f.readXML("xl/sharedStrings.xml") -- cgit v1.2.1