Resurrect shr-tag-font again, since it's needed to parse <font color="red"> entries.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Tue, 23 Nov 2010 23:54:19 +0000 (00:54 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Tue, 23 Nov 2010 23:54:19 +0000 (00:54 +0100)
lisp/ChangeLog
lisp/shr.el

index 56716cb..64b3945 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 8398e8a..b195f6b 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