]> code.delx.au - gnu-emacs/commitdiff
shr.el (shr-find-fill-point): Don't leave blanks at the start of some lines.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 19 Oct 2010 23:26:28 +0000 (23:26 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 19 Oct 2010 23:26:28 +0000 (23:26 +0000)
lisp/gnus/ChangeLog
lisp/gnus/shr.el

index 15c329e4521e5bf8082c3fa56c7b9188b2d45c08..36b4bc4518e64ab35f718bc42ed72ba305e8d465 100644 (file)
@@ -1,5 +1,8 @@
 2010-10-19  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * shr.el (shr-find-fill-point): Don't leave blanks at the start of some
+       lines.
+
        * nndoc.el (nndoc-type-alist): Add git support.
        (nndoc-git-type-p): New function.
        (nndoc-transform-git-article): Ditto.
index e360eab906459cf6b016a7dd3a3b3ade63edb3e7..cdb6ea67d1d49d485358c4b94f17673c3934f871 100644 (file)
@@ -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 ()