summaryrefslogtreecommitdiff
path: root/lisp/gnus/shr.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/gnus/shr.el')
-rw-r--r--lisp/gnus/shr.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index 526f8121891..b55ee2f431f 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -388,6 +388,11 @@ redirects somewhere else."
(let ((image (ignore-errors
(shr-rescale-image data))))
(when image
+ ;; When inserting big-ish pictures, put them at the
+ ;; beginning of the line.
+ (when (and (> (current-column) 0)
+ (> (car (image-size image t)) 400))
+ (insert "\n"))
(insert-image image (or alt "*"))))
(insert alt)))