Libre Office Calc: Export to CSV with CRLF line endings
I need to be able to save files created in LibreOffice Calc to CSV with the CRLF line endings.
I have tried many options but the files always come out missing the CR part.
I work with programs that will not import the CSV files without the windows line endings.
libreoffice csv
add a comment |
I need to be able to save files created in LibreOffice Calc to CSV with the CRLF line endings.
I have tried many options but the files always come out missing the CR part.
I work with programs that will not import the CSV files without the windows line endings.
libreoffice csv
6
Convert to CSV as you normally would, then use theunix2dos
command on the files.
– muru
Dec 19 '16 at 7:54
There are no options related to line endings in the filter options, so it looks like the only way is to use an external tool. Of course, a custom macro could be written to do this, for example using Python open(). Or perhaps a custom XSLT export filter could do it.
– Jim K
Dec 19 '16 at 17:06
It is quite a while later; but this is still an issue. I usually just save the CSV file now and open and resave using gedit which allows choosing the line endings.
– Adam
Oct 29 '18 at 1:00
add a comment |
I need to be able to save files created in LibreOffice Calc to CSV with the CRLF line endings.
I have tried many options but the files always come out missing the CR part.
I work with programs that will not import the CSV files without the windows line endings.
libreoffice csv
I need to be able to save files created in LibreOffice Calc to CSV with the CRLF line endings.
I have tried many options but the files always come out missing the CR part.
I work with programs that will not import the CSV files without the windows line endings.
libreoffice csv
libreoffice csv
edited Dec 19 '16 at 11:33
user364819
asked Dec 19 '16 at 7:51
AdamAdam
413
413
6
Convert to CSV as you normally would, then use theunix2dos
command on the files.
– muru
Dec 19 '16 at 7:54
There are no options related to line endings in the filter options, so it looks like the only way is to use an external tool. Of course, a custom macro could be written to do this, for example using Python open(). Or perhaps a custom XSLT export filter could do it.
– Jim K
Dec 19 '16 at 17:06
It is quite a while later; but this is still an issue. I usually just save the CSV file now and open and resave using gedit which allows choosing the line endings.
– Adam
Oct 29 '18 at 1:00
add a comment |
6
Convert to CSV as you normally would, then use theunix2dos
command on the files.
– muru
Dec 19 '16 at 7:54
There are no options related to line endings in the filter options, so it looks like the only way is to use an external tool. Of course, a custom macro could be written to do this, for example using Python open(). Or perhaps a custom XSLT export filter could do it.
– Jim K
Dec 19 '16 at 17:06
It is quite a while later; but this is still an issue. I usually just save the CSV file now and open and resave using gedit which allows choosing the line endings.
– Adam
Oct 29 '18 at 1:00
6
6
Convert to CSV as you normally would, then use the
unix2dos
command on the files.– muru
Dec 19 '16 at 7:54
Convert to CSV as you normally would, then use the
unix2dos
command on the files.– muru
Dec 19 '16 at 7:54
There are no options related to line endings in the filter options, so it looks like the only way is to use an external tool. Of course, a custom macro could be written to do this, for example using Python open(). Or perhaps a custom XSLT export filter could do it.
– Jim K
Dec 19 '16 at 17:06
There are no options related to line endings in the filter options, so it looks like the only way is to use an external tool. Of course, a custom macro could be written to do this, for example using Python open(). Or perhaps a custom XSLT export filter could do it.
– Jim K
Dec 19 '16 at 17:06
It is quite a while later; but this is still an issue. I usually just save the CSV file now and open and resave using gedit which allows choosing the line endings.
– Adam
Oct 29 '18 at 1:00
It is quite a while later; but this is still an issue. I usually just save the CSV file now and open and resave using gedit which allows choosing the line endings.
– Adam
Oct 29 '18 at 1:00
add a comment |
1 Answer
1
active
oldest
votes
Line termination is not part of the CSV specification. It depends on the operating system. If you work on linux you get LF; if you use windows, CRLF.
When exporting any kind of text files from linux to windows a conversion tool is required: unix2dos.
I know; and it is a PITA. Gedit allows me to choose line endings....why not Libre Office.
– Adam
Mar 14 at 20:17
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f862204%2flibre-office-calc-export-to-csv-with-crlf-line-endings%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Line termination is not part of the CSV specification. It depends on the operating system. If you work on linux you get LF; if you use windows, CRLF.
When exporting any kind of text files from linux to windows a conversion tool is required: unix2dos.
I know; and it is a PITA. Gedit allows me to choose line endings....why not Libre Office.
– Adam
Mar 14 at 20:17
add a comment |
Line termination is not part of the CSV specification. It depends on the operating system. If you work on linux you get LF; if you use windows, CRLF.
When exporting any kind of text files from linux to windows a conversion tool is required: unix2dos.
I know; and it is a PITA. Gedit allows me to choose line endings....why not Libre Office.
– Adam
Mar 14 at 20:17
add a comment |
Line termination is not part of the CSV specification. It depends on the operating system. If you work on linux you get LF; if you use windows, CRLF.
When exporting any kind of text files from linux to windows a conversion tool is required: unix2dos.
Line termination is not part of the CSV specification. It depends on the operating system. If you work on linux you get LF; if you use windows, CRLF.
When exporting any kind of text files from linux to windows a conversion tool is required: unix2dos.
answered Mar 14 at 17:09
Rafael HernándezRafael Hernández
111
111
I know; and it is a PITA. Gedit allows me to choose line endings....why not Libre Office.
– Adam
Mar 14 at 20:17
add a comment |
I know; and it is a PITA. Gedit allows me to choose line endings....why not Libre Office.
– Adam
Mar 14 at 20:17
I know; and it is a PITA. Gedit allows me to choose line endings....why not Libre Office.
– Adam
Mar 14 at 20:17
I know; and it is a PITA. Gedit allows me to choose line endings....why not Libre Office.
– Adam
Mar 14 at 20:17
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f862204%2flibre-office-calc-export-to-csv-with-crlf-line-endings%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
6
Convert to CSV as you normally would, then use the
unix2dos
command on the files.– muru
Dec 19 '16 at 7:54
There are no options related to line endings in the filter options, so it looks like the only way is to use an external tool. Of course, a custom macro could be written to do this, for example using Python open(). Or perhaps a custom XSLT export filter could do it.
– Jim K
Dec 19 '16 at 17:06
It is quite a while later; but this is still an issue. I usually just save the CSV file now and open and resave using gedit which allows choosing the line endings.
– Adam
Oct 29 '18 at 1:00