From c5990ea3484932fd6066c04e36c63735889a8228 Mon Sep 17 00:00:00 2001 From: vst Date: Thu, 30 Dec 2021 00:36:04 +0800 Subject: [PATCH] Preserve horizontal tab character when set the cell value (#1108) --- cell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"},