Closed ebocher closed 4 years ago
Note that the offset appears when two null values follow each other
This ODS file is well parsed
id | cachalot | globicephal_noir | description |
1 | non | | Départ le 15 juillet 1859. |
The next one no
id | cachalot | globicephal_noir | description |
1 | | | Départ le 15 juillet 1859. |
Thanks for your report!
It looks like a problem with repeated cells:
<table:table-cell table:number-columns-repeated="4"/>
ODS format uses the attribute "repeated" to save space in the file. The library takes that in consideration but deliberately ignores null cell values for optimization. Not a good idea.
It should be easy to fix, just taking an if away :)
Thanks for your answer! I'm not familiar with your lib. Can you point me to the resource to modify?
Don't worry about it! I can commit and release a new version when I have the time.
Nevertheless, it's in the file OdsReader.java. If you search for the variable last_cell_value.
On Thu, 20 Feb 2020, 08:48 Bocher, notifications@github.com wrote:
Thanks for your answer! I'm not familiar with your lib. Can you point me to the resource to modify?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/miachm/SODS/issues/16?email_source=notifications&email_token=ACONZCATOPY6GPNBKLT6JJLRDYYWNA5CNFSM4KXVFYQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMLODEA#issuecomment-588702096, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACONZCG3LMBOUPQFZYORXC3RDYYWNANCNFSM4KXVFYQA .
Try to play with last_cell_value variable but without success. So interested to get a fix as soon as you can. Best regards
Solved in the v1.2.2
Excellent thanks a lot.
I try to read a sheet and convert it into a CSV file.
Code :
It returns the following result :
instead of
There is an offset that seems to be related to the null values. Or maybe I'm not using the library properly.
Thanks.
example_ods.ods.zip