Closed emartynov closed 6 years ago
@AndyScherzinger can you review?
@emartynov sure, I'll give the branch a test drive :)
Looks good to me code wise, just a minor comment. Will test the export later today after work.
Like mentioned in the in line comment only " and ' seem to be escaped, line breaks still exist and won't be escaped. This leads to new lines which will be treated as new rows, e.g. the following export:
Date,Time,Concentration,Preferred Glucose unit,Measured,Notes
1/22/18,21:37,25,mg/dL,After dinner,"Yet
Another
'
""
Test"
1/22/18,21:36,23.5,mg/dL,After dinner,"This, is
A
New line
Test"
When imported into MS Excel (komma delimiter, "-String key):
So I would guess an in-app import of it would still fail (don't know how to do an import :/)
We don't have import, only export :(
I was quickly checking https://tools.ietf.org/html/rfc4180. It looks like MS Excel is wrong with importing CSV.
I will dive more :)
I also send it to my gmail adress and opened it as preview within gmail and there it works fine... so yeah, maybe we just have to ignore Excel...
Conclusion on this PR?
@emartynov fine by me and as discussed excel has its cvs issues but that is excel not glucose :)
Hi @emartynov I tried to explain it again, sorry for not getting it clearly explained :( Hope this time I got it right :)
All fine by me. Any feedback @paolorotolo?
I'll try it ASAP
Works fine in LibreOffice, good work
It is fix for #383.
Changes:
No changes here:
Please review and comment.