(shr-insert): \t is also space.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 3 Oct 2010 23:45:19 +0000 (01:45 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 3 Oct 2010 23:45:19 +0000 (01:45 +0200)
lisp/ChangeLog
lisp/shr.el

index 6a994a2..758a261 100644 (file)
@@ -7,6 +7,7 @@
        (shr-tag-p): Collapse subsequent <p>s.
        (shr-ensure-paragraph): Don't insert double line feeds after blank
        lines.
+       (shr-insert): \t is also space.
 
 2010-10-03  Julien Danjou  <julien@danjou.info>
 
index 5b5ac5f..133f9ea 100644 (file)
@@ -237,7 +237,7 @@ fit these criteria."
    (t
     (let ((first t)
          column)
-      (when (and (string-match "^[ \n]" text)
+      (when (and (string-match "^[ \t\n]" text)
                 (not (bolp)))
        (insert " "))
       (dolist (elem (split-string text))
@@ -258,7 +258,7 @@ fit these criteria."
        (unless shr-start
          (setq shr-start (point)))
        (insert elem))
-      (when (and (string-match "[ \n]$" text)
+      (when (and (string-match "[ \t\n]$" text)
                 (not (bolp)))
        (insert " "))))))