Skip to content

Commit

Permalink
Remove \r from anki note generator tsv (#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube authored Jan 3, 2025
1 parent edd39aa commit 7ad5f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/pages/settings/anki-deck-generator-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7ad5f15

Please sign in to comment.