(shr-insert): Get 'space transition right.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Wed, 6 Oct 2010 11:59:47 +0000 (13:59 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Wed, 6 Oct 2010 11:59:47 +0000 (13:59 +0200)
lisp/ChangeLog
lisp/shr.el

index ba4f460..5c625f9 100644 (file)
@@ -1,5 +1,7 @@
 2010-10-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * shr.el (shr-insert): Get 'space transition right.
+
        * nnimap.el (nnimap-open-connection): Prepare to support
        open-gnutls-stream.
 
index 3b9709c..e0bb868 100644 (file)
@@ -175,7 +175,8 @@ redirects somewhere else."
          column)
       (when (and (string-match "\\`[ \t\n]" text)
                 (not (bolp)))
-       (insert " "))
+       (insert " ")
+       (setq shr-state 'space))
       (dolist (elem (split-string text))
        (setq column (current-column))
        (when (> column 0)