I'm using ssconvert
in Gnumeric to convert a bunch of ODS
files to CSV
files with the command:
ssconvert -O 'separator=; quoting-mode=never' "f.ods" "f.txt";
which works out great ... most of the time. Sometimes, there are cells where the user has punched in a new line character within the cell (in OpenOffice and LibreOffice on Mac, you achieve this by pressing cmd+enter
). This results in the subsequently created CSV
file getting an extra row, so instead of
This is some text. Here comes a newline that should be ignored;Some data;Some more data
I get
This is some text. Here comes a newline
that should be ignored;Some data; Some more data
Is it possible in the conversion process to replace all these newline characters within cells with something else, for example a *
?
Or can I somehow set the computer to ignore all the inline characters within cells?