From e5d51342697099a4ae82481b57a898026a4e7815 Mon Sep 17 00:00:00 2001 From: mattcoleanderson Date: Mon, 12 Feb 2024 15:10:29 -0600 Subject: [PATCH 1/2] remove line break from file link --- src/format.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format.ts b/src/format.ts index 0e81dfad..e1fd5ff7 100644 --- a/src/format.ts +++ b/src/format.ts @@ -58,7 +58,7 @@ export class FormatConverter { } format_note_with_url(note: AnkiConnectNote, url: string, field: string): void { - note.fields[field] += '
Obsidian' + note.fields[field] += 'Obsidian' } format_note_with_frozen_fields(note: AnkiConnectNote, frozen_fields_dict: Record>): void { From 81d269e08c04bd26b2b1c9e6bcf2f4e6df8d57a8 Mon Sep 17 00:00:00 2001 From: mattcoleanderson Date: Mon, 12 Feb 2024 15:56:10 -0600 Subject: [PATCH 2/2] remove line break from file link in py script --- obsidian_to_anki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obsidian_to_anki.py b/obsidian_to_anki.py index 0fb1fb4c..a964c550 100644 --- a/obsidian_to_anki.py +++ b/obsidian_to_anki.py @@ -288,7 +288,7 @@ class FormatConverter: @staticmethod def format_note_with_url(note, url): for key in note["fields"]: - note["fields"][key] += "
" + "".join([ + note["fields"][key] += "".join([ 'Obsidian'.format(url) ])