shr.el (shr-insert): Fix last change.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 11 Nov 2010 03:58:38 +0000 (03:58 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 11 Nov 2010 03:58:38 +0000 (03:58 +0000)
lisp/shr.el

index 88e078b..d1788c3 100644 (file)
@@ -240,11 +240,10 @@ redirects somewhere else."
                    (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) ? )