mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
don't strip q/a formats
This commit is contained in:
parent
e41c61f5fd
commit
b6c227e382
1 changed files with 2 additions and 2 deletions
|
@ -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", "<br>")
|
||||
changed = self.updateField(card, 'qformat', s)
|
||||
s = unicode(self.dialog.cardAnswer.toPlainText()).strip()
|
||||
s = unicode(self.dialog.cardAnswer.toPlainText())
|
||||
s = s.replace("\n", "<br>")
|
||||
changed2 = self.updateField(card, 'aformat', s)
|
||||
changed = changed or changed2
|
||||
|
|
Loading…
Reference in a new issue