Mercurial > emacs
changeset 111490:cd618db8e653
shr.el (shr-insert): Fix last change.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Thu, 11 Nov 2010 04:01:12 +0000 |
parents | 175c03267666 |
children | ea2c0f22a4ad |
files | lisp/gnus/shr.el |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/gnus/shr.el Wed Nov 10 19:59:04 2010 -0800 +++ b/lisp/gnus/shr.el Thu Nov 11 04:01:12 2010 +0000 @@ -240,11 +240,10 @@ (progn (setq found (shr-find-fill-point)) (not (eolp)))) - (unless (prog1 - found - (when (eq (preceding-char) ? ) - (delete-char -1)) - (insert "\n")) + (when (eq (preceding-char) ? ) + (delete-char -1)) + (insert "\n") + (unless found (put-text-property (1- (point)) (point) 'shr-break t) ;; No space is needed at the beginning of a line. (when (eq (following-char) ? )