mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-05-30 17:22:17 -07:00
; htmlfontify: Handle 'reset' face attribute value (bug#81032)
* lisp/htmlfontify.el (hfy-face-to-style-i): Add special handling for the 'reset' face attribute value.
This commit is contained in:
parent
d0d657fa90
commit
20500d6200
1 changed files with 6 additions and 0 deletions
|
|
@ -1000,6 +1000,12 @@ to be merged by the user - `hfy-flatten-style' should do this."
|
|||
parent
|
||||
(hfy-face-to-style-i
|
||||
(hfy-face-attr-for-class v hfy-display-class))))))
|
||||
;; The special value `reset' stands for the value of the
|
||||
;; corresponding attribute (KEY) of the ‘default’ face.
|
||||
(when (eq val 'reset)
|
||||
(setq val (plist-get
|
||||
(hfy-face-attr-for-class 'default hfy-display-class)
|
||||
key)))
|
||||
(setq this
|
||||
(if val (cl-case key
|
||||
(:family (hfy-family val))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue