(shr-rescale-image): Add an :ascent of 100 to images so that the underline comes...
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Tue, 31 May 2011 19:36:37 +0000 (21:36 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Tue, 31 May 2011 19:36:37 +0000 (21:36 +0200)
lisp/shr.el

index 93aa7bc..67effc0 100644 (file)
@@ -533,7 +533,8 @@ the URL of the image to the kill buffer instead."
 (defun shr-rescale-image (data)
   (if (or (not (fboundp 'imagemagick-types))
          (not (get-buffer-window (current-buffer))))
-      (create-image data nil t)
+      (create-image data nil t
+                   :ascent 100)
     (let* ((image (create-image data nil t :ascent 100))
           (size (image-size image t))
           (width (car size))