Skip to content

Commit c5990ea

Browse files
authored
Preserve horizontal tab character when set the cell value (#1108)
1 parent 89b8593 commit c5990ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ func setCellStr(value string) (t string, v string, ns xml.Attr) {
409409
}
410410
if len(value) > 0 {
411411
prefix, suffix := value[0], value[len(value)-1]
412-
for _, ascii := range []byte{10, 13, 32} {
412+
for _, ascii := range []byte{9, 10, 13, 32} {
413413
if prefix == ascii || suffix == ascii {
414414
ns = xml.Attr{
415415
Name: xml.Name{Space: NameSpaceXML, Local: "space"},

0 commit comments

Comments
 (0)