From e09297d5a70571c283fd66289a97680f1e75f1fa Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 29 Dec 2023 00:36:17 +0200 Subject: display: start with \n for the main/question part --- gnosis.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gnosis.el') 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. -- cgit v1.2.3