gnus-html-put-image: Fix resize image code.
[gnus] / lisp / shr.el
index 9ef1691..118afe2 100644 (file)
@@ -114,8 +114,8 @@ fit these criteria."
 (defun shr-tag-u (cont)
   (shr-fontize-cont cont 'underline))
 
-(defun shr-s (cont)
-  (shr-fontize-cont cont 'strikethru))
+(defun shr-tag-s (cont)
+  (shr-fontize-cont cont 'strike-through))
 
 (defun shr-fontize-cont (cont &rest types)
   (let (shr-start)
@@ -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 " "))))))