ruilisi / fortune-sheet

A drop-in javascript spreadsheet library that provides rich features like Excel and Google Sheets
https://ruilisi.github.io/fortune-sheet-docs/
MIT License
2.54k stars 227 forks source link

fix: correctly process ct.s array in getCellValue #541

Closed ErnestThePoet closed 6 months ago

ErnestThePoet commented 6 months ago

If a cell's content is composed of parts with different styles, Cell.ct.s can be an array with multiple elements. However, current getCellValue API only extracts the first content part from s array. In order to retrieve full content, values in s array should be concatenated.

sanchit3008 commented 6 months ago

thanks for catching this @ErnestThePoet !