Skip to content

Split format function and null formats#90

Open
andreyea wants to merge 2 commits intoSheetJS:masterfrom
andreyea:split-format-function-and-null-formats
Open

Split format function and null formats#90
andreyea wants to merge 2 commits intoSheetJS:masterfrom
andreyea:split-format-function-and-null-formats

Conversation

@andreyea
Copy link

@andreyea andreyea commented Dec 4, 2021

This pull request allows specials characters (; \ * ) to be inside double quotes in format definition. For example, "***";"*_".

If a format string is defined as #,###;; (return formatted value for positives and return empty string for negatives and zeroes), it will treat all null definitions as a single space. This is a valid format in Excel.

This also covers issue SheetJS/sheetjs#2569

Allow special characters inside double quotes.
If fmt.length is 0, treat the format as a single space.
Format string example: #,###;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant