From 52f1eee7c487a086756bda857bb6390f8b4a0ffe Mon Sep 17 00:00:00 2001 From: xuri Date: Sat, 15 Feb 2020 16:34:47 +0800 Subject: [PATCH] Fix #578, escape character in the formula --- xmlWorksheet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmlWorksheet.go b/xmlWorksheet.go index 46253e61..dda1b78a 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -475,7 +475,7 @@ func (c *xlsxC) hasValue() bool { // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have // not checked it for completeness - it does as much as I need. type xlsxF struct { - Content string `xml:",innerxml"` + Content string `xml:",chardata"` T string `xml:"t,attr,omitempty"` // Formula type Ref string `xml:"ref,attr,omitempty"` // Shared formula ref Si string `xml:"si,attr,omitempty"` // Shared formula index