From a8e3d346528c9f023e13f4f77e2029bcac0be59f Mon Sep 17 00:00:00 2001 From: kuuuube Date: Thu, 2 Jan 2025 22:51:06 -0500 Subject: [PATCH] Remove \r from anki note generator tsv --- ext/js/pages/settings/anki-deck-generator-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/js/pages/settings/anki-deck-generator-controller.js b/ext/js/pages/settings/anki-deck-generator-controller.js index 8db12d9300..f117179802 100644 --- a/ext/js/pages/settings/anki-deck-generator-controller.js +++ b/ext/js/pages/settings/anki-deck-generator-controller.js @@ -550,7 +550,7 @@ export class AnkiDeckGeneratorController { let tsv = ''; for (const key in noteFields) { if (Object.prototype.hasOwnProperty.call(noteFields, key)) { - tsv += noteFields[key].replaceAll('\t', '   ').replaceAll('\n', '') + '\t'; + tsv += noteFields[key].replaceAll('\t', '   ').replaceAll('\n', '').replaceAll('\r', '') + '\t'; } } return tsv;