mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 13:17:12 -05:00
strip leading whitespace in answer
This commit is contained in:
parent
7449b0eb8b
commit
f9a60b9bbc
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ class DataModel(QAbstractTableModel):
|
|||
q = self.question(c)
|
||||
a = self.formatQA(c.a())
|
||||
if a.startswith(q):
|
||||
return a[len(q):]
|
||||
return a[len(q):].strip()
|
||||
return a
|
||||
|
||||
def formatQA(self, txt):
|
||||
|
|
|
|||
Loading…
Reference in a new issue