gnus-html-image-fetched: Search also for \r\n\r\n to get the start of data
authorJulien Danjou <julien@danjou.info>
Wed, 22 Sep 2010 16:22:19 +0000 (18:22 +0200)
committerJulien Danjou <julien@danjou.info>
Wed, 22 Sep 2010 16:23:08 +0000 (18:23 +0200)
Signed-off-by: Julien Danjou <julien@danjou.info>
lisp/ChangeLog
lisp/gnus-html.el

index 2c0ca7a..80cb5f1 100644 (file)
@@ -5,6 +5,8 @@
        (gnus-html-put-image): Stop using markers. They are harmful if you have
        2 images side-by-side, they can't be properly update on text deletion.
        Using text-property is safer here.
+       (gnus-html-image-fetched): Search also for \r\n\r\n to get the start of
+       data.
 
 2010-09-22  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
index 527d92b..f796bde 100644 (file)
@@ -346,7 +346,8 @@ Use ALT-TEXT for the image string."
 
 (defun gnus-html-image-fetched (status buffer image)
   (url-store-in-cache (current-buffer))
-  (when (and (search-forward "\n\n" nil t)
+  (when (and (or (search-forward "\n\n" nil t)
+                 (search-forward "\r\n\r\n" nil t))
              (buffer-live-p buffer))
     (let ((data (buffer-substring (point) (point-max))))
       (with-current-buffer buffer