Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: asjo@koldfront.dk (Adam Sjøgren)
Cc: ding@gnus.org, emacs-devel@gnu.org
Subject: Re: shr.el: add linebreaks to mouse-over tooltips (title attributes)
Date: Sat, 13 Dec 2014 16:24:31 +0100	[thread overview]
Message-ID: <m3zjar1sk0.fsf@stories.gnus.org> (raw)
In-Reply-To: <877fxwr1zi.fsf@topper.koldfront.dk> ("Adam \=\?iso-8859-1\?Q\?Sj\?\= \=\?iso-8859-1\?Q\?\=F8gren\=22's\?\= message of "Fri, 12 Dec 2014 22:29:21 +0100")

asjo@koldfront.dk (Adam Sjøgren) writes:

> 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
> chars:

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



      reply	other threads:[~2014-12-13 15:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-12 21:29 Adam Sjøgren
2014-12-13 15:24 ` Lars Magne Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3zjar1sk0.fsf@stories.gnus.org \
    --to=larsi@gnus.org \
    --cc=asjo@koldfront.dk \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).