sheet_to_json
: rawNumber
applied only when raw: true
#2978
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#2978
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
I wanted to ask if this is expected behaviour:
485a4f30f1/bits/90_utils.js (L42)
row[hdr[C]] = raw && (val.t !== "n" || (val.t === "n" && o.rawNumbers !== false)) ? v : format_cell(val,v,o);
For now there is no way to apply
rawNumber
, if my parsing option israw:false
.In the end result I would like to have all field types formatted except for numbers (because of e-notation), hence I want
raw:false
and assumedrawNumbers
provide that exclusion.I also noticed that previous commit to that line allowed it, so maybe there's some edge case I'm not seeing? Here's the previous version:
row[hdr[C]] = raw || (o.rawNumbers && val.t == "n") ? v : format_cell(val,v,o);
Opened #2979 to solve this
Closed in
766fc4f4d2