adding an option to not parse numbers #2014
No reviewers
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#2014
Loading…
Reference in New Issue
No description provided.
Delete Branch "master"
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 have a problem that this PR will solve let me know if it needs anything else to be included.
Let's take a step back.
What you changed affects the CSV writer, not the CSV parser. Is that the intention?
Is the goal specifically to write raw numbers or should it also write raw strings / boolean / dates as well?
If the goal is to change the CSV writing, the changes should only be in
make_csv_row
. I would have written something like:i just need to be able to write the numbers raw but keep the formatting the same otherwise i cna make the requested change
i'll add it to sheet_to_json as well just in case?
sheet_to_json
already has the optionraw
. When true (default) it will give the underlying values, and when false (have to explicitly pass the option) it will use the formatted text. The difference betweenraw
and your proposedrawNumbers
is that the former works for all types and the latter is only for numbers (hence question 2)Hey yes it's just to write raw numbers but keep the other formatting, I will make the change you asked
@srijonsaha great library, not having this is causing some production issues with our website wondering if you can approve
@SheetJSDev @srijonsaha hey just bumping this i still need it for my prod application
@ab320012 Hi could you give a common example use case of what this change would be? We don't want to accept every change simply because it solves a very specific one time situation.
@srijonsaha yes absolutely, the number parser right now is formatting my csv in scientific notation, i'd like to keep the numbers raw but parse everything else the same way that it was, is that enough of a use case? it's just an added option so i can use the internal parser but keep the numbers the way they are does that make sense?
@srijonsaha hey thanks for the merge this is causing us some prod issues, wondering if you will publish soon?