Preserve horizontal tab character when set the cell value (#1108)

This commit is contained in:
vst 2021-12-30 00:36:04 +08:00 committed by GitHub
parent 89b85934f6
commit c5990ea348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"},