]> git.eshelyaron.com Git - emacs.git/commitdiff
shr.el (shr-tag-font): Resurrect shr-tag-font again, since it's needed to parse ...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 24 Nov 2010 00:35:23 +0000 (00:35 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 24 Nov 2010 00:35:23 +0000 (00:35 +0000)
lisp/gnus/ChangeLog
lisp/gnus/shr.el

index 3717191ba32565d7b2ec32edec4c34eca00c3e6e..41eab2f092a8fbd5deeafb3b2400f0b66a7f2aa0 100644 (file)
@@ -2,6 +2,8 @@
 
        * shr.el (shr-insert-color-overlay): Split stuff like
        "#444444 !important" to find the real colour.
+       (shr-tag-font): Resurrect shr-tag-font again, since it's needed to
+       parse <font color="red"> entries.
 
 2010-11-23  Andrew Cohen  <cohen@andy.bu.edu>
 
index 8398e8a6114fbd5eb618e0faec71719df146f6e9..b195f6bf8a56ce3171c449baeea26b1c52f443d5 100644 (file)
@@ -702,6 +702,12 @@ START, and END."
   (shr-ensure-newline)
   (insert (make-string shr-width shr-hr-line) "\n"))
 
+(defun shr-tag-font (cont)
+  (let ((start (point))
+        (color (cdr (assq :color cont))))
+    (shr-generic cont)
+    (shr-insert-color-overlay color start (point))))
+
 ;;; Table rendering algorithm.
 
 ;; Table rendering is the only complicated thing here.  We do this by