branch: elpa/gnosis commit e4e55aa6aa9eca14b23ecda99a341d5010591e50 Author: Thanos Apollo <pub...@thanosapollo.org> Commit: Thanos Apollo <pub...@thanosapollo.org>
display-parathema: Include cond for empty string. + Prevents inserting an extra empty line for empty strings. --- gnosis.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnosis.el b/gnosis.el index b9c2c2e8ef..09c5274351 100644 --- a/gnosis.el +++ b/gnosis.el @@ -588,7 +588,7 @@ If FALSE t, use gnosis-face-false face" (defun gnosis-display-parathema (parathema) "Display PARATHEMA." - (when parathema + (when (and parathema (not (string-empty-p parathema))) (search-backward "----") ; search back for separator (forward-line 1) (insert "\n" (gnosis-center-string parathema) "\n")