diff options
author | Thanos Apollo <[email protected]> | 2024-07-16 17:18:14 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-07-16 17:18:14 +0300 |
commit | 07c86227b321c19a86fd618811b386258488c0aa (patch) | |
tree | 73e1deee0c03d0109bde922da27ca5b538c08365 | |
parent | 092b971499e7b22247ffc506a9b32fe7a1bec25d (diff) |
cloze: Add quick fix for old cloze note format.
-rw-r--r-- | gnosis.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1493,6 +1493,11 @@ If user-input is equal to CLOZE, return t." (num 0) ;; Number of clozes revealed (hints (gnosis-get 'options 'notes `(= id ,id))) (success nil)) + ;; Quick fix for old cloze note versions. + (cond ((and (stringp hints) (string-empty-p hints)) + (setq hints nil)) + ((and (not (listp hints)) (not (string-empty-p hints))) + (setq hints (list hints)))) ;; Initially display the sentence with no reveals (gnosis-display-cloze-string main clozes hints nil nil) (cl-loop for cloze in clozes |