diff --git a/ext/js/pages/settings/anki-deck-generator-controller.js b/ext/js/pages/settings/anki-deck-generator-controller.js index 8db12d930..f11717980 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;