Changing to Unix Line Ending

Win7-64
LO 7.0.4.2

Is there any way to change the default line endings to Unix My LO is loaded on a Windows platformt tut I use cygwin, Unix applications hosted on a Windows system, extensively. Although it is possible to change endings external to LO (cygwin:dos2unix) it would be much more convenient to set the Unix endings as the default to use in LO. I’ve looked for it but can’t seem to find it.

thanks

@anon73440385
Well, I generate a .csv file from calc. The csv file ends with , and the interferes with using cygwin tools. Doesn’t happen often, but it does happen. For example, regular expressions depend on the EOL are not treated properly without insertion of a control character. For example, "sed -e ‘s/something$/change/’ " will fail because “sed” expects the EOL to by and the EOL is .

This issue is fixed when I use cygwin:dos2unix filenames. But I am looking for an internal solution within LO if it is available.

So one answer to your question is that the line endings affect all regular expressions which depend on detecting an EOL.

Another issue is that in some Unix routines, the is treated as a binary character. This translates into the entire file being considered as a binary file and most ASCII functions will abandon execution when the first is seen.

Ok - just wanted to assure that you are talking about exports to text files.

In Writer, which you tagged in the question, do File → Save As, change “save as type” to “Text - Choose Encoding”, then specify the line ending type as LF. If you’ve already saved the file then also check “Edit filter settings”.

However your comment mentions CSV, which sounds like Calc instead. And I do not know how you are using Impress or Draw, because there does not seem to be an option to save as text from these components. It looks to me like either the tags need to be fixed or the question needs elaboration.

@jimk Thanks for telling me how to change the line ending in Write. I didn’t know that and it’s certainly useful. And you are correct, this is a Calc issue. To your comment on fixing the tags, thanks. Just removed impress and draw.

From https://bugs.documentfoundation.org/show_bug.cgi?id=59041:

The line separator for CSV is platform-dependent and cannot be changed.

One solution would be to run Linux in a virtual environment to use LibreOffice. However dos2unix may be simpler.

Related: Calc export to CSV with CRLF line breaks

Thanks. Sooner or later I will probably use a VMM. Right now I’m in the weeds; to busy to find out how.