+2011-10-09 Andreas Schwab <schwab@linux-m68k.org>
+
+ * html2text.el (html2text-get-attr): Correctly handle attribute values
+ containing "=".
+
2011-09-22 Kan-Ru Chen <kanru@kanru.info>
* ecomplete.el (ecomplete-display-matches): Use a local keymap to
;; 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)
;; 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)
(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))))
;;