Merge pull request #461 from mlh758/fix-439

Further improve read performance
formula
xuri 6 years ago committed by GitHub
commit 448f5524a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1003,7 +1003,11 @@ func TestSharedStrings(t *testing.T) {
if !assert.NoError(t, err) {
t.FailNow()
}
f.GetRows("Sheet1")
rows, err := f.GetRows("Sheet1")
if !assert.NoError(t, err) {
t.FailNow()
}
assert.Equal(t, "A", rows[0][0])
}
func TestSetSheetRow(t *testing.T) {

@ -112,8 +112,8 @@ func (f *File) Rows(sheet string) (*Rows, error) {
return nil, ErrSheetNotExist{sheet}
}
if xlsx != nil {
output, _ := xml.Marshal(f.Sheet[name])
f.saveFileList(name, replaceWorkSheetsRelationshipsNameSpaceBytes(output))
data := f.readXML(name)
f.saveFileList(name, replaceWorkSheetsRelationshipsNameSpaceBytes(namespaceStrictToTransitional(data)))
}
return &Rows{
f: f,

Loading…
Cancel
Save