summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-07-18 15:15:16 +0800
committerxuri <xuri.me@gmail.com>2020-07-18 15:15:16 +0800
commitc922c32fb7571d3d40d3244e5635142bc390a3db (patch)
tree12c2a1541458963caca5f7714d7861c42637d4c6 /cell.go
parent820a314cfbcaa4d32401b0b6c67bf65f064483ec (diff)
support parse and generate XML element namespace dynamic, fix #651
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cell.go b/cell.go
index 0163c3b..3293d19 100644
--- a/cell.go
+++ b/cell.go
@@ -490,6 +490,7 @@ func (f *File) SetCellHyperLink(sheet, axis, link, linkType string) error {
sheetRels := "xl/worksheets/_rels/" + strings.TrimPrefix(sheetPath, "xl/worksheets/") + ".rels"
rID := f.addRels(sheetRels, SourceRelationshipHyperLink, link, linkType)
linkData.RID = "rId" + strconv.Itoa(rID)
+ f.addSheetNameSpace(sheet, SourceRelationship)
case "Location":
linkData = xlsxHyperlink{
Ref: axis,