From 706124e5f6ba5b1b6586acbb311c1e28d78f1deb Mon Sep 17 00:00:00 2001 From: Protesilaos Stavrou Date: Fri, 30 Jul 2021 23:08:52 +0300 Subject: [PATCH] Do not propertize newline in Gemini headings The problem with the old design is noticeable when the heading's face has a background, overline, or underline attribute. That will appear on the new line below the heading. You can reproduce the problem by evaluating the following form and visiting a page with headings: (set-face-attribute 'elpher-gemini-heading1 nil :background "gray50" :overline t) --- elpher.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elpher.el b/elpher.el index a82d1ba..3645f72 100644 --- a/elpher.el +++ b/elpher.el @@ -1510,8 +1510,7 @@ by HEADER-LINE." elpher--gemini-page-headings)) (unless (display-graphic-p) (insert (make-string level ?#) " ")) - (insert (propertize header 'face face)) - (newline)))) + (insert (format "%s\n" (propertize header 'face face)))))) (defun elpher-gemini-insert-text (text-line) "Insert a plain non-preformatted TEXT-LINE into a text/gemini document. -- 2.20.1