mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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)])
|
row.extend([self.escapeText(f) for f in splitFields(flds)])
|
||||||
# tags
|
# tags
|
||||||
if self.includeTags:
|
if self.includeTags:
|
||||||
row.append(tags)
|
row.append(tags.strip())
|
||||||
data.append("\t".join(row))
|
data.append("\t".join(row))
|
||||||
self.count = len(data)
|
self.count = len(data)
|
||||||
out = "\n".join(data)
|
out = "\n".join(data)
|
||||||
|
@ -230,7 +230,7 @@ class AnkiPackageExporter(AnkiExporter):
|
||||||
|
|
||||||
def exporters():
|
def exporters():
|
||||||
def id(obj):
|
def id(obj):
|
||||||
return "%s (*%s)" % (obj.key, obj.ext)
|
return ("%s (*%s)" % (obj.key, obj.ext), obj)
|
||||||
return (
|
return (
|
||||||
id(TextNoteExporter),
|
id(TextNoteExporter),
|
||||||
id(AnkiPackageExporter),
|
id(AnkiPackageExporter),
|
||||||
|
|
Loading…
Reference in a new issue