From 8d709fbc81d3f2cbe285e0bba57b68f5d56732a1 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Tue, 15 Aug 2017 16:17:58 +0200 Subject: Bookmarks - HTML export - Write CRLF on Windows systems and LF on others. --- toolkit/components/places/BookmarkHTMLUtils.jsm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'toolkit') diff --git a/toolkit/components/places/BookmarkHTMLUtils.jsm b/toolkit/components/places/BookmarkHTMLUtils.jsm index f8fc0ba51..c10ef85d6 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 () { -- cgit v1.2.3