diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-08-15 16:17:58 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-03-11 16:10:04 +0100 |
commit | 8d709fbc81d3f2cbe285e0bba57b68f5d56732a1 (patch) | |
tree | b91ca0e6a958ef46b39920bfc4febf9bd74e7835 /toolkit | |
parent | e3c30c6a4d9efb9a1218634939eed64bf7bd479e (diff) | |
download | uxp-8d709fbc81d3f2cbe285e0bba57b68f5d56732a1.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.jsm | 7 |
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 () { |