diff options
author | xuri <xuri.me@gmail.com> | 2022-03-05 14:48:34 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-03-05 14:48:34 +0800 |
commit | f0cb29cf6668ab96992b1e48278d9f5b1f9e4976 (patch) | |
tree | 3bcc69e973d070edf0d3a0f7764bb7e91d7774ca /drawing.go | |
parent | 129052ae7db0fd2c59b1ea9158df0e75450cad42 (diff) |
This closes #1162, improve the compatibility with alternate content
Preserve alternate content in the workbook, worksheet, and drawingML
Diffstat (limited to 'drawing.go')
-rw-r--r-- | drawing.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1160,6 +1160,12 @@ func (f *File) drawingParser(path string) (*xlsxWsDr, int) { log.Printf("xml decode error: %s", err) } content.R = decodeWsDr.R + for _, v := range decodeWsDr.AlternateContent { + content.AlternateContent = append(content.AlternateContent, &xlsxAlternateContent{ + Content: v.Content, + XMLNSMC: SourceRelationshipCompatibility.Value, + }) + } for _, v := range decodeWsDr.OneCellAnchor { content.OneCellAnchor = append(content.OneCellAnchor, &xdrCellAnchor{ EditAs: v.EditAs, |