force strings with tabs to be wrapped in quotes#2
force strings with tabs to be wrapped in quotes#2redchair123 wants to merge 1 commit intowarpech:masterfrom redchair123:master
Conversation
|
I don't see tab character in your post above but maybe GitHub stripped it... Would you be able to writes steps to reproduce this error on Handsontable.com? |
|
Here's one way to show the issue -- admittedly, there is also an issue in parse but this patch focuses just on the stringify part (this is on OSX with excel 2011, but I suspect the same issue exists on linux with libreoffice and windows with excel 2010/2013). ISSUE IN PARSE
It should dump in one cell but it now dumps in 3 ISSUE IN STRINGIFY
It should dump in 1 cell but in fact dumps in 3 FixesThe attached commit fixes the stringify half. If you find the approach reasonable I'll also submit a stringify patch. |
|
Hi @Niggler, sorry that I didn't merge the PR so far. Now I see that you have deleted your fork but I am still able to see the changes that you've submitted. I agree this is a valid issue |
|
Did you also have a fix for the "parse" half of the issue? |
|
I've been investigating further and actually am not happy with the proposed solution. When I fully understand what's going on I'll submit another PR |
|
Thanks! Me too. I've spent whole last day unvestivating Excel and various CSV/TSV libraries to see if they perform better than my code. In places they are better, but still far from good. I've written more about it in issue #3. I would appreciate your help! |
SheetClip.stringify does not wrap strings that contain tabs but no newlines.
To generate such a monstrosity, set
On Excel 2011 it's displayed as if the tab is a single character, but copying and pasting (pbcopy/pbpaste) reveals that an actual tab character is there!