summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-07-17 09:13:10 +0300
committerThanos Apollo <[email protected]>2024-07-17 09:13:10 +0300
commit5d5fad251051ca2136254fb6c64de6acf720af71 (patch)
tree753aac50cc412137a579731045a891714dacbd56
parenta7c85363850b96176f502eecdc2a9d7b046c355c (diff)
[fix] mc-cloze: Use gnosis-display-cloze-string.
* Replace deprecated gnosis-display-cloze-sentence with gnosis-display-cloze-string.
-rw-r--r--gnosis.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnosis.el b/gnosis.el
index d9c657f..902ca77 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1535,13 +1535,13 @@ If user-input is equal to CLOZE, return t."
(cloze (list (gnosis-get 'answer 'notes `(= id ,id))))
(user-choice nil)
(success nil))
- (gnosis-display-cloze-sentence main cloze nil 0 success)
+ (gnosis-display-cloze-string main cloze nil nil nil)
(gnosis-display-image id)
(setf user-choice (gnosis-mcq-answer id)
success (string= user-choice (car cloze)))
(if success
- (gnosis-display-cloze-sentence main cloze nil 1 nil)
- (gnosis-display-cloze-sentence main cloze nil 0 t))
+ (gnosis-display-cloze-string main nil nil cloze nil)
+ (gnosis-display-cloze-string main nil nil nil cloze))
;; Display user answer only upon failure
(unless success
(gnosis-display-cloze-user-answer user-choice))