mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix importing non-latin tags
This commit is contained in:
parent
c1242740ac
commit
37b89cdac3
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ class TextImporter(NoteImporter):
|
|||
self.data = [sub(x)+"\n" for x in self.data.split("\n") if sub(x)]
|
||||
if self.data:
|
||||
if self.data[0].startswith("tags:"):
|
||||
self.tagsToAdd = self.data[0][5:].split(" ")
|
||||
tags = unicode(self.data[0][5:], "utf8")
|
||||
self.tagsToAdd = tags.split(" ")
|
||||
del self.data[0]
|
||||
self.updateDelimiter()
|
||||
if not self.dialect and not self.delimiter:
|
||||
|
|
Loading…
Reference in a new issue