Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions rows.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,18 @@ func (x *XlsxFile) parseRow(decoder *xml.Decoder, startElement *xml.StartElement
func (x *XlsxFile) parseRawCells(rawCells []rawCell, index int) ([]Cell, error) {
cells := []Cell{}
for _, rawCell := range rawCells {
column := strings.Map(removeNonAlpha, rawCell.Reference)
if rawCell.Value == nil && rawCell.InlineString == nil {
// This cell is empty, so ignore it
// This cell is empty, so add empty entry
cells = append(cells, Cell{
Column: column,
Row: index,
Value: "",
Type: x.getCellType(rawCell),
})
continue
}
column := strings.Map(removeNonAlpha, rawCell.Reference)

val, err := x.getCellValue(rawCell)
if err != nil {
return nil, err
Expand Down