* [PATCH] (gnus-html-wash-tags): Fix tag case.
@ 2010-09-19 7:57 Julien Danjou
0 siblings, 0 replies; only message in thread
From: Julien Danjou @ 2010-09-19 7:57 UTC (permalink / raw)
To: ding; +Cc: Julien Danjou
Signed-off-by: Julien Danjou <julien@danjou.info>
---
lisp/ChangeLog | 1 +
lisp/gnus-html.el | 12 ++++++++----
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 09af7dd..50c0512 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -4,6 +4,7 @@
than curl.
(gnus-html-image-fetched): Fix `gnus-html-put-image' call not setting
the right URL and ALT text on images.
+ (gnus-html-wash-tags): Fix tag case.
2010-09-19 Lars Magne Ingebrigtsen <larsi@gnus.org>
diff --git a/lisp/gnus-html.el b/lisp/gnus-html.el
index fd59ec1..497878f 100644
--- a/lisp/gnus-html.el
+++ b/lisp/gnus-html.el
@@ -253,13 +253,17 @@ fit these criteria."
;; should be deleted.
((equal tag "IMG_ALT")
(delete-region start end))
- ;; Whatever. Just ignore the tag.
- ((equal tag "b")
+ ;; w3m does not normalize the case
+ ((or (equal tag "b")
+ (equal tag "B"))
(gnus-overlay-put (gnus-make-overlay start end) 'face 'bold))
- ((equal tag "U")
+ ((or (equal tag "u")
+ (equal tag "U"))
(gnus-overlay-put (gnus-make-overlay start end) 'face 'underline))
- ((equal tag "i")
+ ((or (equal tag "i")
+ (equal tag "I"))
(gnus-overlay-put (gnus-make-overlay start end) 'face 'italic))
+ ;; Whatever. Just ignore the tag.
(t
))
(goto-char start))
--
1.7.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-09-19 7:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-19 7:57 [PATCH] (gnus-html-wash-tags): Fix tag case Julien Danjou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).