Libre Office Calc: Export to CSV with CRLF line endings












3















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.










share|improve this question




















  • 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
















3















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.










share|improve this question




















  • 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














3












3








3








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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














  • 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








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










1 Answer
1






active

oldest

votes


















1














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.






share|improve this answer
























  • I know; and it is a PITA. Gedit allows me to choose line endings....why not Libre Office.

    – Adam
    Mar 14 at 20:17













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
});


}
});














draft saved

draft discarded


















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









1














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.






share|improve this answer
























  • I know; and it is a PITA. Gedit allows me to choose line endings....why not Libre Office.

    – Adam
    Mar 14 at 20:17


















1














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.






share|improve this answer
























  • I know; and it is a PITA. Gedit allows me to choose line endings....why not Libre Office.

    – Adam
    Mar 14 at 20:17
















1












1








1







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










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





















  • 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




















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b