From ff9047e262353603ea43447215e5d95769142bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=B6rfelt?= Date: Sat, 5 Oct 2024 11:08:38 +0200 Subject: [PATCH] convert tags to lower case to avoid import issues See https://github.com/laurent22/joplin/issues/11179 --- src/importer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/importer.py b/src/importer.py index 7d96e320..6d632752 100644 --- a/src/importer.py +++ b/src/importer.py @@ -222,7 +222,10 @@ def write_note(self, note: imf.Note): # Arbitrary metadata will be ignored. metadata = {} if note.tags: - metadata["tags"] = [tag.title for tag in note.tags] + # Convert the tags to lower case before the import to avoid issues + # with special first characters. + # See: https://github.com/laurent22/joplin/issues/11179 + metadata["tags"] = [tag.title.lower() for tag in note.tags] supported_keys = [ "title", "created",