Skip to content

[BUG] Row.actualCellCount and Row.cellCount values are reversed if empty column present #1472

Closed
@kiba-d

Description

@kiba-d

🐛 Bug Report

Row.actualCellCount and Row.cellCount are reversed if empty column present
Input:
A|B|C
1| |1

Lib version: 4.1.1

Steps To Reproduce

  const workbook = new Excel.Workbook()
  await workbook.xlsx.load(input)
  workbook.eachSheet(sheet => {
     const row = sheet.getRow(2)
     console.log(`columnCount ${sheet.columnCount}`) //columnCount 3
     console.log(`actualCellCount ${row.actualCellCount}`) //actualCellCount 2
     console.log(`cellCount ${row.cellCount}`) //cellCount 3
  })

The expected behaviour:

actualCellCount must return actual cells count including empty cells, i.e. 3 in described above example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy