emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/htmlize ed220b1 2/3: Ignore nil faces in inheritance chain


From: ELPA Syncer
Subject: [nongnu] elpa/htmlize ed220b1 2/3: Ignore nil faces in inheritance chain
Date: Wed, 25 Aug 2021 17:57:31 -0400 (EDT)

branch: elpa/htmlize
commit ed220b1f3be1f898e3cfd628196b16d25a65cb5f
Author: Hrvoje Niksic <hniksic@gmail.com>
Commit: Hrvoje Niksic <hniksic@gmail.com>

    Ignore nil faces in inheritance chain
---
 htmlize.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htmlize.el b/htmlize.el
index 72aee47..b99b0b7 100644
--- a/htmlize.el
+++ b/htmlize.el
@@ -1045,7 +1045,7 @@ If no rgb.txt file is found, return nil."
     (let ((size-list
            (cl-loop
             for f in face-list
-            for h = (face-attribute f :height)
+            for h = (and (facep f) (face-attribute f :height))
             collect (if (eq h 'unspecified) nil h))))
       (cl-reduce 'htmlize-merge-size (cons nil size-list)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]