mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
don't display question in answer column
This commit is contained in:
parent
0b7ebe59bb
commit
b7fb620249
1 changed files with 5 additions and 1 deletions
|
@ -243,7 +243,11 @@ class DataModel(QAbstractTableModel):
|
|||
return self.formatQA(c.q())
|
||||
|
||||
def answer(self, c):
|
||||
return self.formatQA(c.a())
|
||||
q = self.question(c)
|
||||
a = self.formatQA(c.a())
|
||||
if a.startswith(q):
|
||||
return a[len(q):]
|
||||
return a
|
||||
|
||||
def formatQA(self, txt):
|
||||
s = txt.replace("<br>", u" ")
|
||||
|
|
Loading…
Reference in a new issue