branch: elpa/gnosis
commit 19e7cb6d14cfa985c75cb678513435cdf4347bbd
Author: Thanos Apollo <pub...@thanosapollo.org>
Commit: Thanos Apollo <pub...@thanosapollo.org>

    display-keimenon: Remove optional arg for fill-paragraph.
---
 gnosis.el | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/gnosis.el b/gnosis.el
index 77c159aebd..11e581411d 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -391,15 +391,12 @@ This will not be applied to sentences that start with 
double space."
   "Display STR as keimenon.
 
 If FILL-PARAGRAPH-P, insert question using `fill-paragraph'."
-  (let ((fill-paragraph-p (or fill-paragraph-p t)))
-    (erase-buffer)
-    (if fill-paragraph-p
-       (fill-paragraph
-        (insert "\n" (replace-regexp-in-string "\n" "" str)))
-      (insert "\n"  str))
-    (gnosis-insert-separator)
-    (gnosis-apply-center-buffer-overlay)
-    (gnosis-apply-syntax-overlay)))
+  (erase-buffer)
+  (insert "\n" (replace-regexp-in-string "\n" "" str))
+  (fill-paragraph)
+  (gnosis-insert-separator)
+  (gnosis-apply-center-buffer-overlay)
+  (gnosis-apply-syntax-overlay))
 
 (defun gnosis-display-mcq-options (id)
   "Display answer options for mcq note ID."

Reply via email to