diff --git a/ankiqt/ui/modelproperties.py b/ankiqt/ui/modelproperties.py index 4db5ea048..7ece5d13f 100644 --- a/ankiqt/ui/modelproperties.py +++ b/ankiqt/ui/modelproperties.py @@ -330,10 +330,10 @@ class ModelProperties(QDialog): self.updateField(card, 'name', newname) self.updateField(card, 'description', unicode( self.dialog.cardDescription.toPlainText())) - s = unicode(self.dialog.cardQuestion.toPlainText()).strip() + s = unicode(self.dialog.cardQuestion.toPlainText()) s = s.replace("\n", "
") changed = self.updateField(card, 'qformat', s) - s = unicode(self.dialog.cardAnswer.toPlainText()).strip() + s = unicode(self.dialog.cardAnswer.toPlainText()) s = s.replace("\n", "
") changed2 = self.updateField(card, 'aformat', s) changed = changed or changed2