summaryrefslogtreecommitdiff
path: root/stream.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-04-02 00:41:14 +0800
committerxuri <xuri.me@gmail.com>2020-04-05 13:51:00 +0800
commit0f2a9053246c3ae45e6c7ba911a1fb135664abdf (patch)
tree7428d041bcd06956933003598fa56b0b0c246945 /stream.go
parent59f6af21a378fdde21422a92b79a7b03bba313d4 (diff)
Performance improvements
Diffstat (limited to 'stream.go')
-rw-r--r--stream.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.go b/stream.go
index 98cf828..1af0b9f 100644
--- a/stream.go
+++ b/stream.go
@@ -365,7 +365,7 @@ func writeCell(buf *bufferedWriter, c xlsxC) {
buf.WriteString(`>`)
if c.V != "" {
buf.WriteString(`<v>`)
- xml.EscapeText(buf, []byte(c.V))
+ xml.EscapeText(buf, stringToBytes(c.V))
buf.WriteString(`</v>`)
}
buf.WriteString(`</c>`)