mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04: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)
|
q = self.question(c)
|
||||||
a = self.formatQA(c.a())
|
a = self.formatQA(c.a())
|
||||||
if a.startswith(q):
|
if a.startswith(q):
|
||||||
return a[len(q):]
|
return a[len(q):].strip()
|
||||||
return a
|
return a
|
||||||
|
|
||||||
def formatQA(self, txt):
|
def formatQA(self, txt):
|
||||||
|
|
Loading…
Reference in a new issue