From d0b7572a9215eda9f0c94147589c0c28208f094e Mon Sep 17 00:00:00 2001 From: "James P. Ascher" Date: Tue, 16 Feb 2021 22:37:18 -0500 Subject: [PATCH] update math for text-based terminal Calling (face-font 'default) on a text-based terminal gives nil, throwing an error from face-font that then refuses to render the page. Leaving fill-column the same for text terminals should work. Respectfully submitted, J.P. jpsa@pm.me --- elpher.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elpher.el b/elpher.el index 4c34f52..ebc2737 100644 --- a/elpher.el +++ b/elpher.el @@ -1372,9 +1372,9 @@ by HEADER-LINE." (2 'elpher-gemini-heading2) (3 'elpher-gemini-heading3) (_ 'default))) - (fill-column (/ (* fill-column + (fill-column (if (face-font 'default) (/ (* fill-column (font-get (font-spec :name (face-font 'default)) :size)) - (font-get (font-spec :name (face-font face)) :size)))) + (font-get (font-spec :name (face-font face)) :size)) fill-column)) (unless (display-graphic-p) (insert (make-string level ?#) " ")) (insert (propertize header 'face face)) -- 2.20.1