@renato.mauro,
Thanks for the sample files.
How do you import/load your CSV file? I tried your scenario/ case a bit using the following sample code and it works fine. I am using latest version/fix: Aspose.Cells for Java v18.9.x (please try it if you are not already using it). I imported your CSV file into the Workbook and finally saved to CSV file format. The output CSV is fine tuned and as expected. It does not treat consecutive delimiters as one (which you want):
e.g
Sample code:
TxtLoadOptions loadOptions = new TxtLoadOptions(LoadFormat.CSV);
Workbook template = new Workbook();
WorksheetCollection templateWorkSheets = template.getWorksheets();
Worksheet exportWorksheet = templateWorkSheets.get(0);
exportWorksheet.getCells().importCSV("f:\\files\\EmptyColumns.csv",loadOptions,0,0);
template.save("f:\\files\\out1.csv", SaveFormat.CSV);
If you are using some other scenario/ case, kindly do provide us more details and sample code to reproduce the issue on our end, we will check it soon.