diff options
author | xuri <xuri.me@gmail.com> | 2022-02-08 00:08:06 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-02-08 00:08:06 +0800 |
commit | 3f8f4f52e68d408da5a2e5108af3cc99bf8586bc (patch) | |
tree | 95ee799ee12d078b5dc12463417990acd2cb676a /cell.go | |
parent | 0f1fcb78d5518695cb80cc2266290e37df38a1ee (diff) |
This closes #1139, `SetCellDefault` support non-numeric value
- Add default value on getting `View` property of sheet views
- Add examples and unit test for set sheet views
- Re-order field on sheet view options
- Fix incorrect build-in number format: 42
- Simplify code for the `stylesReader` function
Diffstat (limited to 'cell.go')
-rw-r--r-- | cell.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -450,6 +450,9 @@ func (f *File) SetCellDefault(sheet, axis, value string) error { // setCellDefault prepares cell type and string type cell value by a given // string. func setCellDefault(value string) (t string, v string) { + if ok, _ := isNumeric(value); !ok { + t = "str" + } v = value return } |