summaryrefslogtreecommitdiff
path: root/col.go
diff options
context:
space:
mode:
Diffstat (limited to 'col.go')
-rw-r--r--col.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/col.go b/col.go
index f3e502c..5d91229 100644
--- a/col.go
+++ b/col.go
@@ -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" {