Closed mpyat2 closed 2 months ago
Hi @mpyat2, although I agree this is a good idea in principle and has probably been in the code for a long time, I'm having trouble reproducing the error. See this row with spaces in the name for example:
Hi @dbenn Could you please attach a file (space-separated) you opened?
Here is my example T_Umi_space_delim.txt
And what I see after opening it:
Hi @dbenn Could you please attach a file (space-separated) you opened?
@mpyat2, here it is; I used the same name for the file :) T_Umi_space_delim.txt.csv
Interesting that you see this problem and I don't on very similar builds. Windows vs Mac? Unlikely unless we're talking about CR+LF etc. od -c
may provide some insights but I don't see anything immediately obvious in the file.
EDIT: see next comment below!
Very happy for you to go with your proposed solution (your code above) if you want to.
Ah, a key difference is that I saved as CSV and you saved with space delimiters and indeed, you did say to use Delimiter= "Space"
. So yes, I can see why you see what you do and that quoted strings would help. So, yes, your proposed code change makes sense. Thanks!
Possible solution: in ValidObservation.toAAVSOFormatString: use "quoteForCSVifNeeded" for all text fields (not only for comments).