CSW writer, avoid tailing line break

Hello there,

Does anyone know how to deal with last empty line in CSV writer?

I found this thread, but it cuts on “use DB Loader”. In case of this fellow it might work, but I’m uploading the file to FTP to Adobe Analytics. Unfortunately, they do not support other easy upload ways.

How can I get rid of this tailing row escape?

Thanks in advance