* shr.el (shr-insert): Don't insert double spaces.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 8 Oct 2010 13:56:34 +0000 (15:56 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 8 Oct 2010 13:56:34 +0000 (15:56 +0200)
lisp/ChangeLog
lisp/shr.el

index e556ee9..ddd2073 100644 (file)
@@ -1,3 +1,7 @@
+2010-10-08  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * shr.el (shr-insert): Don't insert double spaces.
+
 2010-10-08  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus-gravatar.el (gnus-treat-from-gravatar)
index ffc27e9..daafa61 100644 (file)
@@ -188,7 +188,8 @@ redirects somewhere else."
     (let ((first t)
          column)
       (when (and (string-match "\\`[ \t\n]" text)
-                (not (bolp)))
+                (not (bolp))
+                (not (eq (char-after (1- (point))) ? )))
        (insert " "))
       (dolist (elem (split-string text))
        (when (and (bolp)