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