(shr-insert): Also remove soft hypens from non-folded text.
This commit is contained in:
parent
2294380798
commit
bb13183c1b
2 changed files with 10 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
2015-03-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* net/shr.el (shr-insert): Remove soft hyphens.
|
||||
(shr-insert): Also remove soft hypens from non-folded text.
|
||||
|
||||
2015-02-28 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
|
|
|
@ -495,7 +495,15 @@ size, and full-buffer size."
|
|||
(insert "\n"))
|
||||
(cond
|
||||
((eq shr-folding-mode 'none)
|
||||
(insert text))
|
||||
(let ((start (point)))
|
||||
(insert text)
|
||||
(save-restriction
|
||||
(narrow-to-region start (point))
|
||||
;; Remove soft hyphens.
|
||||
(goto-char (point-min))
|
||||
(while (search-forward "" nil t)
|
||||
(replace-match "" t t))
|
||||
(goto-char (point-max)))))
|
||||
(t
|
||||
(let ((font-start (point)))
|
||||
(when (and (string-match "\\`[ \t\n\r ]" text)
|
||||
|
|
Loading…
Add table
Reference in a new issue