mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix exporters(), tags need stripping
This commit is contained in:
parent
cd5dfa2116
commit
e8aea4d713
1 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ where cards.id in %s)""" % ids2str(cardIds)):
|
|||
row.extend([self.escapeText(f) for f in splitFields(flds)])
|
||||
# tags
|
||||
if self.includeTags:
|
||||
row.append(tags)
|
||||
row.append(tags.strip())
|
||||
data.append("\t".join(row))
|
||||
self.count = len(data)
|
||||
out = "\n".join(data)
|
||||
|
@ -230,7 +230,7 @@ class AnkiPackageExporter(AnkiExporter):
|
|||
|
||||
def exporters():
|
||||
def id(obj):
|
||||
return "%s (*%s)" % (obj.key, obj.ext)
|
||||
return ("%s (*%s)" % (obj.key, obj.ext), obj)
|
||||
return (
|
||||
id(TextNoteExporter),
|
||||
id(AnkiPackageExporter),
|
||||
|
|
Loading…
Reference in a new issue