mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-07 15:22:06 +00:00
Protect htmlize from some buggy fants
This commit is contained in:
parent
80fb1b566a
commit
b6de229d4e
@ -866,9 +866,9 @@ If no rgb.txt file is found, return nil."
|
||||
;; Only works in Emacs 21 and later.
|
||||
(let ((size-list
|
||||
(loop
|
||||
for f = face then (face-attribute f :inherit)
|
||||
for f = face then (ignore-errors (face-attribute f :inherit)) ;?????
|
||||
until (or (not f) (eq f 'unspecified))
|
||||
for h = (face-attribute f :height)
|
||||
for h = (ignore-errors (face-attribute f :height)) ;???????
|
||||
collect (if (eq h 'unspecified) nil h))))
|
||||
(reduce 'htmlize-merge-size (cons nil size-list))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user