summaryrefslogtreecommitdiff
path: root/lisp/gnus/shr.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/gnus/shr.el')
-rw-r--r--lisp/gnus/shr.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index e360eab9064..cdb6ea67d1d 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -241,8 +241,8 @@ redirects somewhere else."
(insert "\n"))
(put-text-property (1- (point)) (point) 'shr-break t)
;; No space is needed at the beginning of a line.
- (if (eq (following-char) ? )
- (delete-char 1)))
+ (when (eq (following-char) ? )
+ (delete-char 1)))
(when (> shr-indentation 0)
(shr-indent))
(end-of-line))
@@ -280,6 +280,8 @@ redirects somewhere else."
(while (and (> count 0)
(aref (char-category-set (following-char)) ?>))
(forward-char 1)))
+ (when (eq (following-char) ? )
+ (forward-char 1))
t)))))
(defun shr-ensure-newline ()