gnus-html-get-image-data: Search also for \r\n\r\n to get the start of data
[gnus] / lisp / gnus-html.el
index 366c331..847a3d1 100644 (file)
@@ -371,7 +371,8 @@ Return a string with image data."
   (with-temp-buffer
     (mm-disable-multibyte)
     (url-cache-extract (url-cache-create-filename url))
-    (when (search-forward "\n\n" nil t)
+    (when (or (search-forward "\n\n" nil t)
+              (search-forward "\r\n\r\n" nil t))
       (buffer-substring (point) (point-max)))))
 
 (defun gnus-html-put-image (data start end &optional url alt-text)