Discussion:
shr.el: add linebreaks to mouse-over tooltips (title attributes)
Lars Magne Ingebrigtsen
2014-12-13 15:24:31 UTC
Permalink
When reading nntp+news.gwene.org:gwene.com.xkcd there are often long
title attributes on the comic image, and when shown on one line, the
text does not fit on my tiny screen.
I guess the correct solution would be for Emacs to wrap the "help-echo"
to fit the screen automatically.
The second best thing would be if shr.el wrapped the text to fit the
screen.
And here is what I crudely whipped up, a regex to sort-of-wrap at 72
Thanks; I've now committed something similar, but which make it fold
between words.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Loading...