Only elide label of hyperlink inset if target and not name given

Kornel Benko kornel at lyx.org
Mon Mar 23 12:11:27 UTC 2020


Am Mon, 23 Mar 2020 12:36:58 +0100
schrieb Pavel Sanda <sanda at lyx.org>:

> On Sun, Mar 22, 2020 at 08:26:47PM -0400, Richard Kimberly Heck wrote:
> > On 3/22/20 5:51 PM, Pavel Sanda wrote:  
> > > On Sat, Mar 21, 2020 at 11:14:48PM +0100, ??ystein Senneset Haaland wrote:  
> > >> When I add a URL as a hyperlink inset and give it a name, I normally would
> > >> like to see the full text of the name in the label. This way, it can to a
> > >> greater extent be part of the surrounding text.
> > >>
> > >> The patch is simple; it only moves the eliding part up where its only the
> > >> target that is set, not the name:  
> > > Makes sense. I can commit later if there are no objections.   
> > 
> > Seems sensible to me, too.  
> 
> Actually I am not sure anymore about arbitrary lengths. If someone hyperlinks whole
> paragraph, do we really want inset overlaping width of lyx window?
> Wouldn't be enough to make restriction of 'name' case just somewhat longer?
> (Say 80 chars approximating single line in the output.) 
> 
> Pavel

Or, to make this more flexible, restrict to the width of displayed buffer?

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200323/1e81ddfa/attachment.asc>


More information about the lyx-devel mailing list