Skip to content

Commit 7715c14

Browse files
committed
This closes #1886, remove the namespace prefix for the default spreadsheet namespace
- Improvement compatibility for the workbook internal part with a spreadsheet namespace prefix - Update GitHub Action configuration, using the macOS 13 in the unit test pipeline to temporarily resolve test failed in macos-14-arm64
1 parent 055349d commit 7715c14

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
strategy:
77
matrix:
88
go-version: [1.18.x, 1.19.x, 1.20.x, '>=1.21.1', 1.22.x]
9-
os: [ubuntu-latest, macos-latest, windows-latest]
9+
os: [ubuntu-latest, macos-13, windows-latest]
1010
targetplatform: [x86, x64]
1111

1212
runs-on: ${{ matrix.os }}

lib.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,11 @@ func getRootElement(d *xml.Decoder) []xml.Attr {
646646
case xml.StartElement:
647647
tokenIdx++
648648
if tokenIdx == 1 {
649+
for i := 0; i < len(startElement.Attr); i++ {
650+
if startElement.Attr[i].Value == NameSpaceSpreadSheet.Value {
651+
startElement.Attr[i] = NameSpaceSpreadSheet
652+
}
653+
}
649654
return startElement.Attr
650655
}
651656
}

0 commit comments

Comments
 (0)