Minimal quotes, not escaping quotes itself
oliver-pola opened this issue · comments
I got a CSV, Format=Delimited(;), from PowerShell Export-CSV with UseQuotes=AsNeeded (https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/export-csv?view=powershell-7.2) and want to apply the same rule with your reformat feature. So I suppose UseQuotes=AsNeeded translates to Minimal quotes, but it does not escape the quotes itself by double-double-quotes.
I have content to start some executables with arguments in a different column (one arguments column). And it looks like this:
arguments: arg1, arg2 with spaces
will result in CSV to:
...;"arg1 ""arg2 with spaces""";...
If I apply reformat with minimal quotes I get:
...;arg1 "arg2 with spaces";...
Thanks for posting this issue. You're right this was a bug, it only checked for the separator character, not the quote character. It's fixed now and will be available next update
fyi the CSV Lint plug-in was updated to version 0.4.5.3 which is available in the releases page, which also contains the bugfix for this issue.
Eventually in the next Notepad++ update it will be available in Plugin Admin, but you can also install the latest plugin version manually by going to the releases page, download the most recent zip and follow the steps described here.