From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/70972 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] gnus-html: add support for i, b and u tags Date: Sat, 18 Sep 2010 15:32:25 +0200 Message-ID: <1284816745-8535-1-git-send-email-julien@danjou.info> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1284816794 26989 80.91.229.12 (18 Sep 2010 13:33:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2010 13:33:14 +0000 (UTC) Cc: Julien Danjou To: ding@gnus.org Original-X-From: ding-owner+M19345=ding+2Daccount=gmane.org@lists.math.uh.edu Sat Sep 18 15:33:13 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OwxXU-00051d-I6 for ding-account@gmane.org; Sat, 18 Sep 2010 15:33:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1OwxXS-0008EJ-Ta for ding-account@gmane.org; Sat, 18 Sep 2010 08:33:11 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1OwxXQ-0008EA-EE for ding@lists.math.uh.edu; Sat, 18 Sep 2010 08:33:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OwxXL-0006Kj-Sj for ding@lists.math.uh.edu; Sat, 18 Sep 2010 08:33:07 -0500 Original-Received: from prometheus.naquadah.org ([212.85.154.174] helo=mx1.naquadah.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OwxXL-0001SW-00 for ; Sat, 18 Sep 2010 15:33:03 +0200 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id 6D25A5C14B; Sat, 18 Sep 2010 15:32:32 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on prometheus.naquadah.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=4.5 tests=ALL_TRUSTED,BAYES_00, URIBL_RHS_DOB autolearn=no version=3.3.1 Original-Received: from keller.adm.naquadah.org (unknown [IPv6:2a01:e35:2e39:e900:222:faff:fe9d:ce44]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 687E85C120; Sat, 18 Sep 2010 15:32:26 +0200 (CEST) Original-Received: from jd by keller.adm.naquadah.org with local (Exim 4.72) (envelope-from ) id 1OwxWj-0002E9-QG; Sat, 18 Sep 2010 15:32:25 +0200 X-Mailer: git-send-email 1.7.1 X-Spam-Score: -0.4 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:70972 Archived-At: Signed-off-by: Julien Danjou --- lisp/ChangeLog | 5 +++++ lisp/gnus-html.el | 6 ++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2530d81..6d21114 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-09-18 Julien Danjou + + * gnus-html.el (gnus-html-wash-tags): Add support for i, b and u HTML + tags. + 2010-09-18 Lars Magne Ingebrigtsen * gnus-start.el (gnus-get-unread-articles): Allow the backends to diff --git a/lisp/gnus-html.el b/lisp/gnus-html.el index c390ae0..e74fd5b 100644 --- a/lisp/gnus-html.el +++ b/lisp/gnus-html.el @@ -253,6 +253,12 @@ fit these criteria." ((equal tag "IMG_ALT") (delete-region start end)) ;; Whatever. Just ignore the tag. + ((equal tag "b") + (gnus-overlay-put (gnus-make-overlay start end) 'face 'bold)) + ((equal tag "U") + (gnus-overlay-put (gnus-make-overlay start end) 'face 'underline)) + ((equal tag "i") + (gnus-overlay-put (gnus-make-overlay start end) 'face 'italic)) (t )) (goto-char start)) -- 1.7.1