aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2015-03-01 12:17:52 +0100
committerLars Magne Ingebrigtsen2015-03-01 12:17:52 +0100
commit2294380798e9fd20077905ec7f7f127feee9b185 (patch)
tree6220277416021ffd2e4f67e9a09fcc815613a5fb
parent159e9f4b1c119ef0172ad22520e8342db337ff7d (diff)
downloademacs-2294380798e9fd20077905ec7f7f127feee9b185.tar.gz
emacs-2294380798e9fd20077905ec7f7f127feee9b185.zip
* lisp/net/shr.el (shr-insert): Remove soft hyphens.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/net/shr.el4
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1cfd08fc95d..c6ef7177d02 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12015-03-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * net/shr.el (shr-insert): Remove soft hyphens.
4
12015-02-28 Eli Zaretskii <eliz@gnu.org> 52015-02-28 Eli Zaretskii <eliz@gnu.org>
2 6
3 * mail/rmailmm.el (rmail-mime-insert-html): Decode HTML payload 7 * mail/rmailmm.el (rmail-mime-insert-html): Decode HTML payload
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index f6a390e4d0a..868af3837a9 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -512,6 +512,10 @@ size, and full-buffer size."
512 (replace-match "" t t)) 512 (replace-match "" t t))
513 (while (re-search-forward "[ \t\n\r ]+" nil t) 513 (while (re-search-forward "[ \t\n\r ]+" nil t)
514 (replace-match " " t t)) 514 (replace-match " " t t))
515 ;; Remove soft hyphens.
516 (goto-char (point-min))
517 (while (search-forward "­" nil t)
518 (replace-match "" t t))
515 (goto-char (point-max))) 519 (goto-char (point-max)))
516 ;; We may have removed everything we inserted if if was just 520 ;; We may have removed everything we inserted if if was just
517 ;; spaces. 521 ;; spaces.