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

    display-keimenon: Remove fill-paragraph.
    
    + Not needed when we use gnosis-center-string.
---
 gnosis.el | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/gnosis.el b/gnosis.el
index 8d2e72bfb2..e82ac85b21 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -390,12 +390,9 @@ This will not be applied to sentences that start with 
double space."
                           (delete-region (match-beginning 0) start)))))))))))
 
 (defun gnosis-display-keimenon (str)
-  "Display STR as keimenon.
-
-If FILL-PARAGRAPH-P, insert question using `fill-paragraph'."
+  "Display STR as keimenon."
   (erase-buffer)
-  (insert "\n" (replace-regexp-in-string "\n" " " str))
-  (fill-paragraph)
+  (insert "\n" (gnosis-center-string (replace-regexp-in-string "\n" " " str)))
   (gnosis-insert-separator)
   (gnosis-apply-center-buffer-overlay)
   (gnosis-apply-syntax-overlay))

Reply via email to