From 17a44dcd1da5ebd5c543e48557c5da1337583c00 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Tue, 15 Aug 2017 16:17:58 +0200 Subject: [PATCH] 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(-) 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 () {