Description: A same URL starting on the left boundary of the page is split over a different number of lines depending: - if it's inline an existing paragraph - or if it's on its own paragraph Steps to Reproduce: As a convenience, I provided a document with twice the same URL: - a first time inline an existing paragraph - a second time on its own paragraph I'm referring to this document in the following steps. FYI, I recommend enabling `View` > `Formatting Marks` since it helps visualize this issue more clearly. 1. Open the example document 2. Locate the line starting with "https://bugs.documentfoundation.org/" 3. Notice that this line is part of the same paragraph as the line above ("that are extremely painful.") 3. Notice that the next line ("show_bug.cgi?id=169477") is actually part of the same URL (i.e. the URL is automatically split after the `/` a.k.a. slash) 4. Notice that this URL is split over 2 lines 5. Now, locate the line starting with "https://" 6. Notice that this line is not part of the same paragraph as the line above ("procure him some great pleasure.") 7. Notice that the next 2 lines ("bugs.documentfoundation.org/" and "show_bug.cgi?id=169477") are actually part of the same URL (i.e. the URL is automatically split after the `/` a.k.a. slash) Actual Results: Notice that that second URL is split over 3 lines Expected Results: That URL should be split over only 2 lines, similarly to the first URL. Indeed: - they are both the same URL (i.e. they have the same length) - they both start on the left boundary of the document Reproducible: Always User Profile Reset: Yes Additional Info: Version: 25.8.2.2 (X86_64) / LibreOffice Community Build ID: 580(Build:2) CPU threads: 8; OS: Linux 6.17; UI render: default; VCL: gtk3 Locale: fr-FR (en_US.UTF-8); UI: en-US Ubuntu package version: 4:25.8.2-0ubuntu0.25.10.1 Calc: threaded
Created attachment 204127 [details] Lorem Ipsum example to illustrate the bug
It's the space, before the http, that results in how it is divided. Add a space before de http on the second case, and gets the same result. Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 620(Build:0) CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win Locale: es-ES (es_ES); UI: en-US Calc: threaded
@m_a_riosv Thanks for looking into this :) > Add a space before de http on the second case, and gets the same result. Indeed, that's exactly my point: adding a space before the second URL would render this URL _inline_ a paragraph, and in that case it will be split differently compared to when the URL is at the beginning of a paragraph. Actually, that last point wasn't clear in my bug report. Indeed, there can be more text _after_ the URL, but as long as the URL is at the beginning of the paragraph, it won't be split the same as an "inline" URL (i.e. a URL that's not at the beginning of the paragraph). In any case, it does seem incorrect that the same URL starting on the left boundary of the page will be split differently, depending on whether it's inline or not.