[gnus git] branch master updated: m0-7-122-g6e62edb =1= Add support for <dl>, <dt> and <dd>.
Lars Magne Ingebrigtsen <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 6e62edb5c345e5d733470a5b8fd9c9a400b9b3c6 (commit)
from 0fafcfd05d8e4dbfae06a44423483ee509fe17de (commit)
- Log -----------------------------------------------------------------
commit 6e62edb5c345e5d733470a5b8fd9c9a400b9b3c6
Author: Lars Magne Ingebrigtsen <[email protected]>
Date: Tue Jun 18 13:15:32 2013 +0200
Add support for <dl>, <dt> and <dd>.
(shr-tag-dl, shr-tag-dt, shr-tag-dd): Add support for <dl>, <dt> and
<dd>.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8a93331..695fb16 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -3,6 +3,8 @@
* shr.el (shr-tag-table): Insert the images after the table, so that
they're not covered by the table colourisation, which often looked
awkward.
+ (shr-tag-dl, shr-tag-dt, shr-tag-dd): Add support for <dl>, <dt> and
+ <dd>.
2013-06-18 Katsumi Yamaoka <[email protected]>
diff --git a/lisp/shr.el b/lisp/shr.el
index 1c940be..f3a396a 100644
--- a/lisp/shr.el
+++ b/lisp/shr.el
@@ -1139,6 +1139,21 @@ ones, in case fg and bg are nil."
(shr-generic cont))
(shr-ensure-paragraph))
+(defun shr-tag-dl (cont)
+ (shr-ensure-paragraph)
+ (shr-generic cont)
+ (shr-ensure-paragraph))
+
+(defun shr-tag-dt (cont)
+ (shr-ensure-newline)
+ (shr-generic cont)
+ (shr-ensure-newline))
+
+(defun shr-tag-dd (cont)
+ (shr-ensure-newline)
+ (let ((shr-indentation (+ shr-indentation 4)))
+ (shr-generic cont)))
+
(defun shr-tag-ul (cont)
(shr-ensure-paragraph)
(let ((shr-list-mode 'ul))
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 2 ++
lisp/shr.el | 15 +++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project