]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/gnus/html2text.el (html2text-clean-anchor): Check for quotes around
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 11 Oct 2011 20:20:08 +0000 (22:20 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 11 Oct 2011 20:20:08 +0000 (22:20 +0200)
`href' value.

lisp/gnus/ChangeLog
lisp/gnus/html2text.el

index dbdaa5820f9960ba13f995b96f4713dd25fa6e29..2fd624e819b0bde3b27b60309416fd3c8fcd183b 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-11  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * html2text.el (html2text-clean-anchor): Check for quotes around
+       `href' value.
+
 2011-10-11  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * spam.el (spam-check-BBDB): Simplify and support BBDB 3.x when
index 7e699827141648108b586d4f27b164d2b42128fa..8cfd9b9f903f413bfe212eafbe851b8a368f2811 100644 (file)
@@ -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))))
 
 ;;