mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 13:26:56 -05:00
strip newlines from html edit
This commit is contained in:
parent
db84671284
commit
d6441cf520
1 changed files with 2 additions and 1 deletions
|
|
@ -486,7 +486,8 @@ class FactEditor(object):
|
|||
form.textEdit.setPlainText(self.widgets[w].value)
|
||||
form.textEdit.moveCursor(QTextCursor.End)
|
||||
d.exec_()
|
||||
self.widgets[w].value = unicode(form.textEdit.toPlainText())
|
||||
self.widgets[w].value = (
|
||||
unicode(form.textEdit.toPlainText()).replace("\n", ""))
|
||||
self.loadFields()
|
||||
|
||||
def fieldsAreBlank(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue