mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Tweak type-answer example so users don't think the spelling is a mistake
https://github.com/ankitects/anki/pull/1954
This commit is contained in:
parent
9dcceff4af
commit
ca69198097
1 changed files with 2 additions and 2 deletions
|
@ -571,7 +571,7 @@ class CardLayout(QDialog):
|
||||||
hadHR = origLen != len(txt)
|
hadHR = origLen != len(txt)
|
||||||
|
|
||||||
def answerRepl(match: Match) -> str:
|
def answerRepl(match: Match) -> str:
|
||||||
res = self.mw.reviewer.correct("exomple", "an example")
|
res = self.mw.reviewer.correct("example", "sample")
|
||||||
if hadHR:
|
if hadHR:
|
||||||
res = f"<hr id=answer>{res}"
|
res = f"<hr id=answer>{res}"
|
||||||
return res
|
return res
|
||||||
|
@ -579,7 +579,7 @@ class CardLayout(QDialog):
|
||||||
repl: Union[str, Callable]
|
repl: Union[str, Callable]
|
||||||
|
|
||||||
if type == "q":
|
if type == "q":
|
||||||
repl = "<input id='typeans' type=text value='exomple' readonly='readonly'>"
|
repl = "<input id='typeans' type=text value='example' readonly='readonly'>"
|
||||||
repl = f"<center>{repl}</center>"
|
repl = f"<center>{repl}</center>"
|
||||||
else:
|
else:
|
||||||
repl = answerRepl
|
repl = answerRepl
|
||||||
|
|
Loading…
Reference in a new issue