[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: overfull lines with @url in @raggedright
From: |
Gavin Smith |
Subject: |
Re: overfull lines with @url in @raggedright |
Date: |
Sun, 3 Mar 2019 11:52:22 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Jul 24, 2018 at 10:28:59AM +0200, Werner LEMBERG wrote:
> > I was thinking something like \hfil\allowbreak\hskip 0pt plus -1fil
> > to allow a break at particular characters wherever they occur in the
> > line with the rest of the line being filled up with empty space, but
> > this probably wouldn't look very good in some cases. (Maybe
> > \discretionary{}{}{} instead of \allowbreak if breaking a URL is to
> > be thought of as "hyphenation".)
>
> Let's see what you are coming up with :-)
Finally coming back to this. I made a change in commit b3987a0 to
remove the extra stretch around some characters in URL's but to allow
ragged right formatting within URL's. It will break anywhere allowed
within a URL no matter how much space is left on the line. This
produces acceptable results (IMHO) for the input you sent.
> > [...] maybe something like "@urefbreakhyphen true" and
> > "@urefbreakhyphen false" is more consistent with existing Texinfo
> > commands.
>
> This is fine with me.
I haven't implemented this.
- Re: overfull lines with @url in @raggedright,
Gavin Smith <=