[gnus git] branch master updated: m0-5-213-gf9c309d =1= Fix rendering of href-less <A> elements in shr

Lars Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  f9c309d5b1220eb720e5b9fb8c900dbc84307bd7 (commit)
      from  0a7a92abbb8988653228fd00d967281024a92ebc (commit)


- Log -----------------------------------------------------------------
commit f9c309d5b1220eb720e5b9fb8c900dbc84307bd7
Author: Lars Ingebrigtsen <[email protected]>
Date:   Tue Dec 25 16:46:39 2012 +0100

    Fix rendering of href-less <A> elements in shr
    
    * shr.el (shr-tag-a): Don't tagify <A> elements that don't have HREFs
    (bug#13263).

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9e466e1..885d118 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
 2012-12-25  Lars Ingebrigtsen  <[email protected]>
 
+	* shr.el (shr-tag-a): Don't tagify <A> elements that don't have HREFs
+	(bug#13263).
+
 	* gnus-salt.el (gnus-highlight-selected-tree): Check whether the Tree
 	buffer exists before using it (bug#12475).
 
diff --git a/lisp/shr.el b/lisp/shr.el
index 322c1d5..2ccbbc1 100644
--- a/lisp/shr.el
+++ b/lisp/shr.el
@@ -931,7 +931,8 @@ ones, in case fg and bg are nil."
 	(start (point))
 	shr-start)
     (shr-generic cont)
-    (shr-urlify (or shr-start start) (shr-expand-url url) title)))
+    (when url
+      (shr-urlify (or shr-start start) (shr-expand-url url) title))))
 
 (defun shr-tag-object (cont)
   (let ((start (point))

-----------------------------------------------------------------------
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 |    3 +++
 lisp/shr.el    |    3 ++-
 2 files changed, 5 insertions(+), 1 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.