Merge branch 'master' of github.com:dae/anki

This commit is contained in:
Damien Elmes 2018-01-03 12:17:56 +09:00
commit fb5ba26ce1

View file

@ -74,7 +74,7 @@ class TextImporter(NoteImporter):
self.data = [sub(x)+"\n" for x in self.data.split("\n") if sub(x) != "__comment"]
if self.data:
if self.data[0].startswith("tags:"):
tags = str(self.data[0][5:], "utf8").strip()
tags = str(self.data[0][5:]).strip()
self.tagsToAdd = tags.split(" ")
del self.data[0]
self.updateDelimiter()