From 7dcf0d8eadcdcc994e03dc9dd9f4ff435dcec49d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 9 Mar 2014 10:44:52 +0900 Subject: [PATCH] fix tag strip on export we must make sure to include spaces around tags or they can't be found --- anki/exporting.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/anki/exporting.py b/anki/exporting.py index 47288a1ce..2cbdfc53e 100644 --- a/anki/exporting.py +++ b/anki/exporting.py @@ -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 ######################################################################