fix tag strip on export

we must make sure to include spaces around tags or they can't be
found
This commit is contained in:
Damien Elmes 2014-03-09 10:44:52 +09:00
parent fe2c94b819
commit 7dcf0d8ead

View file

@ -214,9 +214,7 @@ class AnkiExporter(Exporter):
pass
def removeSystemTags(self, tags):
tags = ' '.join(tag for tag in tags.split()
if (tag.lower() != "marked" and tag.lower() != "leech"))
return tags
return self.src.tags.remFromStr("marked leech", tags)
# Packaged Anki decks
######################################################################