[gnus git] branch master updated: n0-17-343-g6ab52c1 =1= html2text.el (html2text-get-attr): Correctly handle attribute values containing "=".
Katsumi Yamaoka <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 6ab52c14d994e773705729c9b9d0b75e3aba2db0 (commit)
from 01cb7ef7561d9649ff967dd4b9c696083a59ad53 (commit)
- Log -----------------------------------------------------------------
commit 6ab52c14d994e773705729c9b9d0b75e3aba2db0
Author: Andreas Schwab <[email protected]>
Date: Sun Oct 9 22:42:39 2011 +0000
html2text.el (html2text-get-attr): Correctly handle attribute values containing "=".
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a9ea580..fee6949 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-09 Andreas Schwab <[email protected]>
+
+ * html2text.el (html2text-get-attr): Correctly handle attribute values
+ containing "=".
+
2011-09-22 Kan-Ru Chen <[email protected]>
* ecomplete.el (ecomplete-display-matches): Use a local keymap to
diff --git a/lisp/html2text.el b/lisp/html2text.el
index 0635ab0..7e69982 100644
--- a/lisp/html2text.el
+++ b/lisp/html2text.el
@@ -193,7 +193,7 @@ formatting, and then moved afterward.")
;; size=3
((string-match "[^ ]=[^ ]" prev)
(let ((attr (nth 0 (split-string prev "=")))
- (value (nth 1 (split-string prev "="))))
+ (value (substring prev (1+ (string-match "=" prev)))))
(setq attr-list (cons (list attr value) attr-list))))
;; size= 3
((string-match "[^ ]=\\'" prev)
@@ -204,7 +204,7 @@ formatting, and then moved afterward.")
;; size=3
((string-match "[^ ]=[^ ]" this)
(let ((attr (nth 0 (split-string this "=")))
- (value (nth 1 (split-string this "="))))
+ (value (substring prev (1+ (string-match "=" this)))))
(setq attr-list (cons (list attr value) attr-list))))
;; size =3
((string-match "\\`=[^ ]" this)
@@ -358,7 +358,7 @@ formatting, and then moved afterward.")
(delete-region p1 p4)
(when href
(goto-char p1)
- (insert (substring href 1 -1 ))
+ (insert (substring href 1 -1))
(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 | 6 +++---
2 files changed, 8 insertions(+), 3 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