]> git.eshelyaron.com Git - emacs.git/commit
Slice images based on their height in SHR, not their zoom level
authorJim Porter <jporterbugs@gmail.com>
Sun, 23 Jun 2024 19:18:57 +0000 (12:18 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sun, 7 Jul 2024 13:16:52 +0000 (15:16 +0200)
commit9741cc2454e1d943dd137c8af053662ef2b42c37
treee6da3200b5d77822d3891dfd823f4b926c5b9768
parent5906fc6dc9835240e48591e23e3763d8fd98cb5b
Slice images based on their height in SHR, not their zoom level

* lisp/net/shr.el (shr-sliced-image-height): New option...
(shr-put-image): ... use it.  Compute the number of slices in relation
to the image height; this way, each slice is roughly the height of a
line of ordinary text.

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Update test, since
zooming no longer necessarily triggers slicing.

* doc/misc/eww.texi (Advanced): Document 'shr-sliced-image-proportion'.

* etc/NEWS: Announce this change.

(cherry picked from commit 3ce7e4ee3f1f8bf85c2c455ac624bec6c7cd10a8)
doc/misc/eww.texi
etc/NEWS
lisp/net/shr.el
test/lisp/net/shr-tests.el