diff options
author | xuri <xuri.me@gmail.com> | 2020-11-06 20:03:13 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-11-06 20:03:13 +0800 |
commit | 5dd0b4aec2931079e064f1fb393b034ce4934540 (patch) | |
tree | 118b86bc2460f46b33de4aefcce0bb0b2a768afa /rows.go | |
parent | cdc57db3b3758781bd053228bfb32879b3adf3de (diff) |
using POSIX directory separator in zip path with Windows
Diffstat (limited to 'rows.go')
-rw-r--r-- | rows.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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") |