diff options
| author | Lars Magne Ingebrigtsen | 2010-11-24 00:35:23 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-11-24 00:35:23 +0000 |
| commit | 1110d53b4e577e1ad2adb25ae1d259768d84563b (patch) | |
| tree | 8146a527531b5d43c469fe452aeda7af697b1038 | |
| parent | 094ae2abf32ae1bab203c181d42a777c773d65bc (diff) | |
| download | emacs-1110d53b4e577e1ad2adb25ae1d259768d84563b.tar.gz emacs-1110d53b4e577e1ad2adb25ae1d259768d84563b.zip | |
shr.el (shr-tag-font): Resurrect shr-tag-font again, since it's needed to parse <font color="red"> entries.
| -rw-r--r-- | lisp/gnus/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/gnus/shr.el | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 3717191ba32..41eab2f092a 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | * shr.el (shr-insert-color-overlay): Split stuff like | 3 | * shr.el (shr-insert-color-overlay): Split stuff like |
| 4 | "#444444 !important" to find the real colour. | 4 | "#444444 !important" to find the real colour. |
| 5 | (shr-tag-font): Resurrect shr-tag-font again, since it's needed to | ||
| 6 | parse <font color="red"> entries. | ||
| 5 | 7 | ||
| 6 | 2010-11-23 Andrew Cohen <cohen@andy.bu.edu> | 8 | 2010-11-23 Andrew Cohen <cohen@andy.bu.edu> |
| 7 | 9 | ||
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index 8398e8a6114..b195f6bf8a5 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el | |||
| @@ -702,6 +702,12 @@ START, and END." | |||
| 702 | (shr-ensure-newline) | 702 | (shr-ensure-newline) |
| 703 | (insert (make-string shr-width shr-hr-line) "\n")) | 703 | (insert (make-string shr-width shr-hr-line) "\n")) |
| 704 | 704 | ||
| 705 | (defun shr-tag-font (cont) | ||
| 706 | (let ((start (point)) | ||
| 707 | (color (cdr (assq :color cont)))) | ||
| 708 | (shr-generic cont) | ||
| 709 | (shr-insert-color-overlay color start (point)))) | ||
| 710 | |||
| 705 | ;;; Table rendering algorithm. | 711 | ;;; Table rendering algorithm. |
| 706 | 712 | ||
| 707 | ;; Table rendering is the only complicated thing here. We do this by | 713 | ;; Table rendering is the only complicated thing here. We do this by |