diff options
author | xuri <xuri.me@gmail.com> | 2020-11-18 22:08:40 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-11-18 22:08:40 +0800 |
commit | 92c8626f814c3bcb91e30f83de8e68c9b8bb9a5f (patch) | |
tree | 86fec139f87ffbbad0ea3f136a622beb1c189ac2 /col.go | |
parent | 2be4bfd410744201f96e79804ef644d26c47f49f (diff) |
Fixed #732, support single line with repeated row element in the sheet data
Diffstat (limited to 'col.go')
-rw-r--r-- | col.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -103,10 +103,9 @@ func (cols *Cols) Rows() ([]string, error) { if inElement == "row" { cellCol = 0 cellRow++ - for _, attr := range startElement.Attr { - if attr.Name.Local == "r" { - cellRow, _ = strconv.Atoi(attr.Value) - } + attrR, _ := attrValToInt("r", startElement.Attr) + if attrR != 0 { + cellRow = attrR } } if inElement == "c" { |