]> git.eshelyaron.com Git - emacs.git/commitdiff
Merge changes made in Gnus trunk.
authorGnus developers <ding@gnus.org>
Mon, 4 Oct 2010 10:16:57 +0000 (10:16 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 4 Oct 2010 10:16:57 +0000 (10:16 +0000)
gnus-html.el (gnus-html-put-image): Fix resize image code.
shr.el (shr-ensure-paragraph): Fix the non-empty line case.

lisp/gnus/ChangeLog
lisp/gnus/gnus-html.el
lisp/gnus/shr.el

index 07e2963107f01eabdc1a0f801a2c7e19f723f3f6..4c2f1e11f7cb46909f077b72146e0b7453de4c0d 100644 (file)
@@ -1,3 +1,11 @@
+2010-10-04  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * shr.el (shr-ensure-paragraph): Fix the non-empty line case.
+
+2010-10-04  Julien Danjou  <julien@danjou.info>
+
+       * gnus-html.el (gnus-html-put-image): Fix resize image code.
+
 2010-10-04  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * shr.el (shr-insert): Use string anchors instead of line anchors.
index 0f8ba83a60c54ab106b050ca78f81697c91caf64..d0414e786014cc92a70aa3d6494ceb4da877f6f4 100644 (file)
@@ -431,17 +431,19 @@ Return a string with image data."
                                  (= (car size) 30)
                                  (= (cdr size) 30))))
                   ;; Good image, add it!
-                  (let ((image (gnus-html-rescale-image
+                  (let ((image (gnus-rescale-image
                                 image
-                                ;; (width . height)
-                                (cons
-                                 ;; Aimed width
-                                 (truncate
-                                  (* gnus-max-image-proportion
-                                     (- (nth 2 edges) (nth 0 edges))))
-                                 ;; Aimed height
-                                 (truncate (* gnus-max-image-proportion
-                                              (- (nth 3 edges) (nth 1 edges))))))))
+                                (let ((edges (gnus-window-inside-pixel-edges
+                                              (get-buffer-window (current-buffer)))))
+                                  ;; (width . height)
+                                  (cons
+                                   ;; Aimed width
+                                   (truncate
+                                    (* gnus-max-image-proportion
+                                       (- (nth 2 edges) (nth 0 edges))))
+                                   ;; Aimed height
+                                   (truncate (* gnus-max-image-proportion
+                                                (- (nth 3 edges) (nth 1 edges)))))))))
                     (delete-region start end)
                     (gnus-put-image image alt-text 'external)
                     (gnus-put-text-property start (point) 'help-echo alt-text)
index 118afe2f3e5b4960408c4ec7d0f6ca1a982cf12f..bfcb91e08c58e1973530dda5fcb29e71d4c38b39 100644 (file)
@@ -101,7 +101,7 @@ fit these criteria."
          (insert "\n"))
       (if (save-excursion
            (beginning-of-line)
-           (looking-at " *"))
+           (looking-at " *$"))
          (insert "\n")
        (insert "\n\n")))))