[gnus git] branch master updated: n0-17-346-g8a021ae =1= html2text.el (html2text-clean-anchor): Check for quotes around `href' value.

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  8a021aefde6f386bf1a5d108798f7a93829aee85 (commit)
      from  db7eb926d777947d15aed7aed0f722fdebe9dec5 (commit)


- Log -----------------------------------------------------------------
commit 8a021aefde6f386bf1a5d108798f7a93829aee85
Author: Andreas Schwab <[email protected]>
Date:   Tue Oct 11 22:06:16 2011 +0000

    html2text.el (html2text-clean-anchor): Check for quotes around `href' value.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2a109ca..e72b34d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-11  Andreas Schwab  <[email protected]>
+
+	* html2text.el (html2text-clean-anchor): Check for quotes around
+	`href' value.
+
 2011-10-11  Teodor Zlatanov  <[email protected]>
 
 	* spam.el (spam-check-BBDB): Simplify and support BBDB 3.x when
diff --git a/lisp/html2text.el b/lisp/html2text.el
index 7e69982..8cfd9b9 100644
--- a/lisp/html2text.el
+++ b/lisp/html2text.el
@@ -358,7 +358,8 @@ formatting, and then moved afterward.")
     (delete-region p1 p4)
     (when href
       (goto-char p1)
-      (insert (substring href 1 -1))
+      (insert (if (string-match "\\`['\"].*['\"]\\'" href)
+		  (substring href 1 -1) href))
       (put-text-property p1 (point) 'face 'bold))))
 
 ;;

-----------------------------------------------------------------------
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    |    5 +++++
 lisp/html2text.el |    3 ++-
 2 files changed, 7 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.