2010-10-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
- * shr.el (shr-tag-span): Drop colorisation of regions since we don't
- control the background color.
- (shr-tag-img): Ignore very small web bug type images.
+ * shr.el (shr-tag-img): Ignore very small web bug type images.
(shr-put-image): Add help-echo alt texts to the images.
(shr-tag-video): Show the video poster image.
(defun shr-tag-s (cont)
(shr-fontize-cont cont 'strike-through))
+(defun shr-tag-span (cont)
+ (let ((start (point))
+ (color (cdr (assq 'color (shr-parse-style (cdr (assq :style cont)))))))
+ (shr-generic cont)
+ (when color
+ (let ((overlay (make-overlay start (point))))
+ (overlay-put overlay 'face (cons 'foreground-color color))))))
+
(defun shr-parse-style (style)
(when style
(let ((plist nil))