aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGnus developers2010-10-04 10:16:57 +0000
committerKatsumi Yamaoka2010-10-04 10:16:57 +0000
commit5d2ef6db45580635e3b816852a0318e747fec0d4 (patch)
tree6d6b40d3397501e0bc8d0ebd83ad5fb1ab945f7b
parent23179cb9f1f9ebc442e5feef277d264cdf561c70 (diff)
downloademacs-5d2ef6db45580635e3b816852a0318e747fec0d4.tar.gz
emacs-5d2ef6db45580635e3b816852a0318e747fec0d4.zip
Merge changes made in Gnus trunk.
gnus-html.el (gnus-html-put-image): Fix resize image code. shr.el (shr-ensure-paragraph): Fix the non-empty line case.
-rw-r--r--lisp/gnus/ChangeLog8
-rw-r--r--lisp/gnus/gnus-html.el22
-rw-r--r--lisp/gnus/shr.el2
3 files changed, 21 insertions, 11 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 07e2963107f..4c2f1e11f7c 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,13 @@
12010-10-04 Lars Magne Ingebrigtsen <larsi@gnus.org> 12010-10-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * shr.el (shr-ensure-paragraph): Fix the non-empty line case.
4
52010-10-04 Julien Danjou <julien@danjou.info>
6
7 * gnus-html.el (gnus-html-put-image): Fix resize image code.
8
92010-10-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
10
3 * shr.el (shr-insert): Use string anchors instead of line anchors. 11 * shr.el (shr-insert): Use string anchors instead of line anchors.
4 12
52010-10-03 Lars Magne Ingebrigtsen <larsi@gnus.org> 132010-10-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el
index 0f8ba83a60c..d0414e78601 100644
--- a/lisp/gnus/gnus-html.el
+++ b/lisp/gnus/gnus-html.el
@@ -431,17 +431,19 @@ Return a string with image data."
431 (= (car size) 30) 431 (= (car size) 30)
432 (= (cdr size) 30)))) 432 (= (cdr size) 30))))
433 ;; Good image, add it! 433 ;; Good image, add it!
434 (let ((image (gnus-html-rescale-image 434 (let ((image (gnus-rescale-image
435 image 435 image
436 ;; (width . height) 436 (let ((edges (gnus-window-inside-pixel-edges
437 (cons 437 (get-buffer-window (current-buffer)))))
438 ;; Aimed width 438 ;; (width . height)
439 (truncate 439 (cons
440 (* gnus-max-image-proportion 440 ;; Aimed width
441 (- (nth 2 edges) (nth 0 edges)))) 441 (truncate
442 ;; Aimed height 442 (* gnus-max-image-proportion
443 (truncate (* gnus-max-image-proportion 443 (- (nth 2 edges) (nth 0 edges))))
444 (- (nth 3 edges) (nth 1 edges)))))))) 444 ;; Aimed height
445 (truncate (* gnus-max-image-proportion
446 (- (nth 3 edges) (nth 1 edges)))))))))
445 (delete-region start end) 447 (delete-region start end)
446 (gnus-put-image image alt-text 'external) 448 (gnus-put-image image alt-text 'external)
447 (gnus-put-text-property start (point) 'help-echo alt-text) 449 (gnus-put-text-property start (point) 'help-echo alt-text)
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index 118afe2f3e5..bfcb91e08c5 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -101,7 +101,7 @@ fit these criteria."
101 (insert "\n")) 101 (insert "\n"))
102 (if (save-excursion 102 (if (save-excursion
103 (beginning-of-line) 103 (beginning-of-line)
104 (looking-at " *")) 104 (looking-at " *$"))
105 (insert "\n") 105 (insert "\n")
106 (insert "\n\n"))))) 106 (insert "\n\n")))))
107 107