Ok, now I understand. It seems the !csvLine documentation was not very clear about this.
When pushing data into !csvLine, you need to store every value separately. Because once csvSave is called, every value that is stored in the !csvLine internal array will get wrapped with “…” automatically (if needed) before saving.
This does not make any more sense to it.
Who defines the “need” for that?
Even if you try so save empty line with “” it will double wrap it again “”""".
Is there a need? I doubt that.
And THE most important thing:
Try saving next line (\n). In your example /n is not next line.
This wraps it up in “” which is a total disaster.
And if there is a need for that it is completely messed up my friend.
You cannot start a next line without double quotes.
This puts HUGE restrictions on working with csv file.
If this cannot be fixed how do I store data to file directly without middle array that messes up the output?
It works fine with\n as well. It gets sourrend by “” as per the CSV file format definition. I guess I do not understand your goal correctly: Do you actually want to save a CSV file, or do you want to create some other file format?
I collect data which I analyze later in calc (LibreOffice Excell substitute)
I need to break the line which I do by saving file every-time I need to, but this is a workaround. I should have just use \n.
Next I need to insert a link and if just put href it is not clickable. So I need to insert =HYPERTEXT(“link”,“click”)
But I cannot store \" it does wrap whole line with doublequotes which makes everything useless.
Definitely there should not be mandatory doublequotes wrap. If everything is messed up because of my mistake not putting quotes this is one thing. But if I cannot do certain things because somebody decided to help and wrap a text for me with quotes this is another.
I’m not sure if I explain correctly. Sorry about that.
Can you see why double quotes are a problem?
Is there any workaround to save multiline csv file without additional quotes?
Suppose I’m getting a big piece of html page through regex in sourceExtract. Then I’d like to save exactly what I see on the html source page in csv. Is it possible?
Or suppose I have a variable like:
some text
some text
some text
When I save it to csv I’m getting:
"some text
some text
some text"
How can I avoid adding these quotes and get the csv without them?
I want to save info to any text file: csv, txt… The goal is to get exactly the same text in the file as it was in Kantu plugin. If I save a variable like this:
This is good when you save what you see, not what Kantu thinks of it. I didn’t know that it is impossible for Kantu. Again, I’ve never had a problem to save in the csv exactly what I see in program.
Quotes in csv are necessary to be able to save any characters, it makes no sense to save a csv without quotation marks, if you need to get it with a software via conversion or batch file but in csv it is basic to use the quotes that allow you to save so also commas, semicolon without damaging the structure of the csv.
I’m with same problem. I have a backend API on my Online App, that’s result a csv file format ready to save, and Kantu add quotes automatic, causing problem. I explain why:
My CSV had a big size, if I returned an array and to save it’s necessary to do a forEach (more than 1000 lines), it’s very slow!!