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

Pavel Sanda sanda at lyx.org
Mon Mar 23 11:36:58 UTC 2020


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


More information about the lyx-devel mailing list