diff options
| author | xuri <xuri.me@gmail.com> | 2020-07-18 15:15:16 +0800 |
|---|---|---|
| committer | xuri <xuri.me@gmail.com> | 2020-07-18 15:15:16 +0800 |
| commit | c922c32fb7571d3d40d3244e5635142bc390a3db (patch) | |
| tree | 12c2a1541458963caca5f7714d7861c42637d4c6 /comment.go | |
| parent | 820a314cfbcaa4d32401b0b6c67bf65f064483ec (diff) | |
support parse and generate XML element namespace dynamic, fix #651
Diffstat (limited to 'comment.go')
| -rw-r--r-- | comment.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -109,6 +109,7 @@ func (f *File) AddComment(sheet, cell, format string) error { sheetRels := "xl/worksheets/_rels/" + strings.TrimPrefix(f.sheetMap[trimSheetName(sheet)], "xl/worksheets/") + ".rels" rID := f.addRels(sheetRels, SourceRelationshipDrawingVML, sheetRelationshipsDrawingVML, "") f.addRels(sheetRels, SourceRelationshipComments, sheetRelationshipsComments, "") + f.addSheetNameSpace(sheet, SourceRelationship) f.addSheetLegacyDrawing(sheet, rID) } commentsXML := "xl/comments" + strconv.Itoa(commentID) + ".xml" |
