How to output a fullwidth space? #1156
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#1156
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Thank you for a nice script.
I use Japanese. When this code is executed, the fullwidth space (Ideographic space) in the exported file disappears.
What should I do? Do I need to set something?
Good catch! IDEOGRAPHIC SPACE U+3000 is a whitespace character according to JS but not according to DOM rules. The whitespace normalization should be restricted to the DOM whitespace characters
/[\t\n\r ]+/
instead of the full whitespace class\s+
.IF you would like to submit a PR, the linked line should be corrected to use the restricted class
[\t\n\r ]+
Thank you for the advice!
I rewrote the following code and it went well :)