summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-12-29 00:36:17 +0200
committerThanos Apollo <[email protected]>2023-12-29 00:36:17 +0200
commite09297d5a70571c283fd66289a97680f1e75f1fa (patch)
treebddc65d894a041766b3cdbf12b9b05031d74a372
parent36db18e0fe926df1e386e2b89d0d5a06528a6ed8 (diff)
display: start with \n for the main/question part
-rw-r--r--gnosis.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/gnosis.el b/gnosis.el
index 8a07251..42b05c5 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -127,8 +127,9 @@ WARNING: This function is still under development, DO NOT use this as is now."
"Display main row for note ID."
(let ((question (gnosis-get 'main 'notes `(= id ,id))))
(with-gnosis-buffer
- (erase-buffer)
- (fill-paragraph (insert (propertize question 'face 'gnosis-face-main))))))
+ (erase-buffer)
+ (fill-paragraph (insert (concat "\n"
+ (propertize question 'face 'gnosis-face-main)))))))
(defun gnosis-display--cloze-sentence (sentence clozes)
"Display cloze sentence for SENTENCE with CLOZES."
@@ -136,7 +137,8 @@ WARNING: This function is still under development, DO NOT use this as is now."
(erase-buffer)
(fill-paragraph
(insert
- (gnosis-cloze-replace-words sentence clozes (propertize gnosis-cloze-char 'face 'gnosis-face-cloze))))))
+ (concat "\n"
+ (gnosis-cloze-replace-words sentence clozes (propertize gnosis-cloze-char 'face 'gnosis-face-cloze)))))))
(defun gnosis-display--basic-answer (answer success user-input)
"Display ANSWER.