]> git.eshelyaron.com Git - emacs.git/commitdiff
mm-decode.el (mm-shr): Remove "soft hyphens".
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 20 Feb 2012 14:25:28 +0000 (14:25 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 20 Feb 2012 14:25:28 +0000 (14:25 +0000)
lisp/gnus/ChangeLog
lisp/gnus/mm-decode.el

index e2d99e92c9eae43c7990fac1afa32714c83143f4..c9fd83aaaa04a1ab9f2a15691a37e93329c383db 100644 (file)
@@ -1,5 +1,7 @@
 2012-02-20  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * mm-decode.el (mm-shr): Remove "soft hyphens".
+
        * nnimap.el (nnimap-request-list): Return the group names encoded as
        utf8.  Otherwise non-European group names don't work.
        (nnimap-request-newgroups): Ditto.
index dd3eb6c9d96e52364a92cfa1f96b63359a98ab6f..09617384049453a90dc064007c1633bbabe620e5 100644 (file)
@@ -1757,6 +1757,10 @@ If RECURSIVE, search recursively."
                                    (string-to-number (match-string 2)))
                                  mm-extra-numeric-entities)))
             (replace-match (char-to-string char))))
+        ;; Remove "soft hyphens".
+        (goto-char (point-min))
+        (while (search-forward "­" nil t)
+          (replace-match "" t t))
         (libxml-parse-html-region (point-min) (point-max))))
       (mm-handle-set-undisplayer
        handle