mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 14:47:12 -05:00
don't stop spaces in card models/models
This commit is contained in:
parent
24789281a5
commit
b47ad74d2a
1 changed files with 2 additions and 2 deletions
|
|
@ -333,7 +333,7 @@ order by n""", id=card.id)
|
|||
newname = unicode(self.dialog.cardName.text())
|
||||
if not newname:
|
||||
newname = _("Card %d") % (self.m.cardModels.index(card) + 1)
|
||||
self.updateField(card, 'name', newname.replace(" ", "-"))
|
||||
self.updateField(card, 'name', newname)
|
||||
s = unicode(self.dialog.cardQuestion.toPlainText())
|
||||
s = s.replace("\n", "<br>")
|
||||
changed = self.updateField(card, 'qformat', s)
|
||||
|
|
@ -469,7 +469,7 @@ order by n""", id=card.id)
|
|||
mname = _("Model")
|
||||
self.updateField(self.m, 'name', mname)
|
||||
self.updateField(self.m, 'tags',
|
||||
unicode(self.dialog.tags.text()).replace(" ", "-"))
|
||||
unicode(self.dialog.tags.text()))
|
||||
try:
|
||||
self.updateField(self.m, 'spacing',
|
||||
float(self.dialog.spacing.text()))
|
||||
|
|
|
|||
Loading…
Reference in a new issue