mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Bookmarks - HTML export - Write CRLF on Windows systems and LF on others.
This commit is contained in:
parent
b8bbffacbe
commit
17a44dcd1d
1 changed files with 6 additions and 1 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue