Преглед на файлове

Fix #578, escape character in the formula

xuri преди 5 години
родител
ревизия
52f1eee7c4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      xmlWorksheet.go

+ 1 - 1
xmlWorksheet.go

@@ -475,7 +475,7 @@ func (c *xlsxC) hasValue() bool {
 // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
 // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
 // not checked it for completeness - it does as much as I need.
 // not checked it for completeness - it does as much as I need.
 type xlsxF struct {
 type xlsxF struct {
-	Content string `xml:",innerxml"`
+	Content string `xml:",chardata"`
 	T       string `xml:"t,attr,omitempty"`   // Formula type
 	T       string `xml:"t,attr,omitempty"`   // Formula type
 	Ref     string `xml:"ref,attr,omitempty"` // Shared formula ref
 	Ref     string `xml:"ref,attr,omitempty"` // Shared formula ref
 	Si      string `xml:"si,attr,omitempty"`  // Shared formula index
 	Si      string `xml:"si,attr,omitempty"`  // Shared formula index