summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
authorvst <vst93g@Gmail.com>2021-12-30 00:36:04 +0800
committerGitHub <noreply@github.com>2021-12-30 00:36:04 +0800
commitc5990ea3484932fd6066c04e36c63735889a8228 (patch)
treead987a216ef7deed31dc75edfe3c9c28ac37840f /cell.go
parent89b85934f60ba0012f3de6da03eb12959e4b4b72 (diff)
Preserve horizontal tab character when set the cell value (#1108)
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cell.go b/cell.go
index daff3d9..983b260 100644
--- a/cell.go
+++ b/cell.go
@@ -409,7 +409,7 @@ func setCellStr(value string) (t string, v string, ns xml.Attr) {
}
if len(value) > 0 {
prefix, suffix := value[0], value[len(value)-1]
- for _, ascii := range []byte{10, 13, 32} {
+ for _, ascii := range []byte{9, 10, 13, 32} {
if prefix == ascii || suffix == ascii {
ns = xml.Attr{
Name: xml.Name{Space: NameSpaceXML, Local: "space"},