aVadim483 / fast-excel-writer

Lightweight and very fast XLSX Excel Spreadsheet Writer in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect escaping of character in number format

nickicastillo opened this issue · comments

Hi,

When a character is preceded with an asterisk (*), in number format, shouldn't be escaped. The asterisk means to repeat a character so that the width of the number fills the column, and it takes that character as literal.

https://support.microsoft.com/en-au/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68#ID0EDN

The function that returns the escaped string:
avadim\FastExcelWriter\Style::numberFormatStandardized

Hope it helps.

commented

Numeric formats do not use the asterisk character (*), but the hash symbol (#)

image

commented

Oh, sorry, I understand what you mean, you're right, I'll fix it