]> git.eshelyaron.com Git - emacs.git/commitdiff
Introduce face for <code> elements in shr
authorKévin Le Gouguec <kevin.legouguec@gmail.com>
Thu, 20 Feb 2020 13:30:45 +0000 (14:30 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 20 Feb 2020 13:30:54 +0000 (14:30 +0100)
* lisp/net/shr.el (shr-tag-code): Don't use the `default' font,
because it has properties that will override surrounding elements
(like <a...>) (bug#39504).

lisp/net/shr.el

index 55c189baa85b1d7f94ccaaeee91c1ee1f821eb32..deddaad15cb7270dec9234cbeb9ce7e9b3e0bd48 100644 (file)
@@ -1440,7 +1440,7 @@ ones, in case fg and bg are nil."
   (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)