Skip to content

Commit

Permalink
Preserve horizontal tab character when set the cell value (qax-os#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
vst93 authored Dec 29, 2021
1 parent 9be394d commit 9bab3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cell.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit 9bab3f3

Please sign in to comment.