Add final line ending to downloaded moves
This commit is contained in:
parent
e9d6434c88
commit
575c2c9b63
|
@ -760,7 +760,8 @@
|
||||||
file.push(line);
|
file.push(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
let contents = encodeURIComponent(file.join("\n"));
|
// Include final \n since we're doing unix-style line endings (instead of line separators)
|
||||||
|
let contents = encodeURIComponent(file.join("\n") + "\n");
|
||||||
|
|
||||||
link.setAttribute("href", "data:text/plain;charset=utf-8," + contents);
|
link.setAttribute("href", "data:text/plain;charset=utf-8," + contents);
|
||||||
link.click();
|
link.click();
|
||||||
|
|
Loading…
Reference in New Issue