summaryrefslogtreecommitdiff
path: root/xmlSharedStrings.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmlSharedStrings.go')
-rw-r--r--xmlSharedStrings.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/xmlSharedStrings.go b/xmlSharedStrings.go
index eac1672..d5fe4a7 100644
--- a/xmlSharedStrings.go
+++ b/xmlSharedStrings.go
@@ -38,7 +38,7 @@ type xlsxSST struct {
// level - then the string item shall consist of multiple rich text runs which
// collectively are used to express the string.
type xlsxSI struct {
- T string `xml:"t,omitempty"`
+ T *xlsxT `xml:"t,omitempty"`
R []xlsxR `xml:"r"`
}
@@ -53,7 +53,10 @@ func (x xlsxSI) String() string {
}
return rows.String()
}
- return x.T
+ if x.T != nil {
+ return x.T.Val
+ }
+ return ""
}
// xlsxR represents a run of rich text. A rich text run is a region of text
@@ -69,7 +72,7 @@ type xlsxR struct {
type xlsxT struct {
XMLName xml.Name `xml:"t"`
Space xml.Attr `xml:"space,attr,omitempty"`
- Val string `xml:",innerxml"`
+ Val string `xml:",chardata"`
}
// xlsxRPr (Run Properties) specifies a set of run properties which shall be