Description: It appears as though hyperlinks have line break inserted before them if they don't fit the current line. That just doesn't look right, and if this isn't a bug, a way to disable this should be avaiable. See the attachment for a clearer picture. Steps to Reproduce: Above Actual Results: Above Expected Results: Above Reproducible: Always User Profile Reset: No Additional Info: No
Created attachment 187012 [details] Example of urls being broken up strangely
I can see the problem, but I have no idea about expected result. Dolezvo1, what is your idea (reduce font size, expand frame size, ...)? => NEEDINFO
To be honest I don't remember the details perfectly, but if it isn't hardcoded to enter a newline before URL in some circumstances, then it seems like a symptom that the line breaking isn't smart enough when breaking URLs. If I am not mistaken, according to this (https://www.unicode.org/reports/tr14/), solidus should be break opportunity in URLs. However it seems to me the only break opportunity that is currently ever used in URLs is the hyphen (possibly because breaking algorithm might not be differentiating URLs from text).
[Automated Action] NeedInfo-To-Unconfirmed
(In reply to dolezvo1 from comment #3) > If I am not mistaken, according to this > (https://www.unicode.org/reports/tr14/), solidus should be break opportunity > in URLs. However it seems to me the only break opportunity that is currently > ever used in URLs is the hyphen (possibly because breaking algorithm might > not be differentiating URLs from text). Hyphen is definitley not a coud idea, because it could be misinterpreted as part of the hyperlink.
No, you're misunderstanding. The way it *currently* works is that it breaks the line when there is a hyphen in the link, not (as far as I am aware) in any other case. For example https://example.com/items/item-one/picture-three.png might get broken as: words words words https://example.com/items/item-one/picture- three.png words I don't see any real issue with breaking on hyphen, however in many cases the link would better fit broken up like this: words words words https://example.com/ items/item-one/picture-three.png words This, however doesn't happen naturally, and *that* is my issue. Even worse, it is not uncommon to see something as hideous as this: words words words https://example.com/items/itemone/ picturethree.png words
Sorry, but I only had a look at example in attachment 187012 [details] and I couldn't see a hyphen there. As far as I can see, problem is not related to text boxes. Just copy URL from attachment and paste it in regular text area. Reduce text with t let's say 7 cm and URL breaks. So I see the more general question: How should LO handle with hyperlinks longer than line whidth. Let's ask design-team
I would manually break a hyperlink at any of the slashes but in case of fields it's not possible. The problem has been reported before and I make this a duplicate to draw more attention on it. *** This bug has been marked as a duplicate of bug 131278 ***