summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-11-06 20:03:13 +0800
committerxuri <xuri.me@gmail.com>2020-11-06 20:03:13 +0800
commit5dd0b4aec2931079e064f1fb393b034ce4934540 (patch)
tree118b86bc2460f46b33de4aefcce0bb0b2a768afa /rows.go
parentcdc57db3b3758781bd053228bfb32879b3adf3de (diff)
using POSIX directory separator in zip path with Windows
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go5
1 files changed, 1 insertions, 4 deletions
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")