summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2017-08-15 16:17:58 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-03-11 16:10:04 +0100
commitec6d995a9ecef18eb0a7c9eb831df89c0307403b (patch)
treeb91ca0e6a958ef46b39920bfc4febf9bd74e7835 /toolkit
parentbd0bb4b081f3feda42f64817cbdfc884d55c5c3d (diff)
downloaduxp-ec6d995a9ecef18eb0a7c9eb831df89c0307403b.tar.gz
Bookmarks - HTML export - Write CRLF on Windows systems and LF on others.
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/components/places/BookmarkHTMLUtils.jsm7
1 files changed, 6 insertions, 1 deletions
diff --git a/toolkit/components/places/BookmarkHTMLUtils.jsm b/toolkit/components/places/BookmarkHTMLUtils.jsm
index f8fc0ba519..c10ef85d60 100644
--- a/toolkit/components/places/BookmarkHTMLUtils.jsm
+++ b/toolkit/components/places/BookmarkHTMLUtils.jsm
@@ -1047,7 +1047,12 @@ BookmarkExporter.prototype = {
},
_writeLine: function (aText) {
- this._write(aText + "\n");
+ if (Services.sysinfo.getProperty("name") == "Windows_NT") {
+ // Write CRLF line endings on Windows
+ this._write(aText + "\r\n");
+ } else {
+ this._write(aText + "\n");
+ }
},
_writeHeader: function () {