>From 36629660e9adf4cd500b081e8b45c76cb1d8cb4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Le=20Gouguec?= Date: Sat, 8 Feb 2020 00:08:13 +0100 Subject: [PATCH] Ensure faces of enclosing elements apply to elements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default face overrides the attributes of every enclosing element. E.g. with foo bar baz, since shr applies 'default' top of 'shr-link', "bar" has neither a blue foreground nor an underline. * lisp/net/shr.el (shr-tag-code): Use a face that only sets relevant attributes. --- lisp/net/shr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 241180d471..87106b0bd6 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1438,7 +1438,7 @@ shr-tag-u (shr-fontize-dom dom 'underline)) (defun shr-tag-code (dom) - (let ((shr-current-font 'default)) + (let ((shr-current-font 'fixed-pitch)) (shr-generic dom))) (defun shr-tag-tt (dom) -- 2.20.1