mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
don't include space in card template name
This commit is contained in:
parent
798fa82ed3
commit
d5ad53fe54
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ order by n""", id=card.id)
|
|||
card = self.currentCard
|
||||
newname = unicode(self.dialog.cardName.text())
|
||||
if not newname:
|
||||
newname = _("Card %d") % (self.m.cardModels.index(card) + 1)
|
||||
newname = _("Card-%d") % (self.m.cardModels.index(card) + 1)
|
||||
self.updateField(card, 'name', newname)
|
||||
s = unicode(self.dialog.cardQuestion.toPlainText())
|
||||
s = s.replace("<br>\n", "<br>")
|
||||
|
|
Loading…
Reference in a new issue