projects
/
gnus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
html2text.el (html2text-clean-anchor): Check for quotes around `href' value.
[gnus]
/
lisp
/
html2text.el
diff --git
a/lisp/html2text.el
b/lisp/html2text.el
index
7e69982
..
8cfd9b9
100644
(file)
--- 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))))
;;