forked from p30928647/excelize
Preserve horizontal tab character when set the cell value (#1108)
This commit is contained in:
parent
89b85934f6
commit
c5990ea348
2
cell.go
2
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"},
|
||||
|
|
Loading…
Reference in New Issue