diff --git a/takhta.html b/takhta.html index a777cb0..5da50b7 100644 --- a/takhta.html +++ b/takhta.html @@ -760,7 +760,8 @@ 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.click();