From b6c227e38241588ecbf279ae3d926aa9e2127bd1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 23 Nov 2008 18:26:53 +0900 Subject: [PATCH] don't strip q/a formats --- ankiqt/ui/modelproperties.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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