Re: [PATCH v3 1/2] docs: allow long links to wrap per character to prevent page overflow
From: Jonathan Corbet
Date: Wed Mar 25 2026 - 15:15:35 EST
Rito Rhymes <rito@xxxxxxxxxxxxxx> writes:
> Some documentation pages contain long link text without natural
> break points, which can force page-wide horizontal scroll overflow
> on small screens.
>
> Use overflow-wrap: anywhere for anchor text in the docs stylesheet so
> links can wrap per character as a fallback when normal word boundaries
> are unavailable.
>
> Examples:
> https://docs.kernel.org/6.15/firmware-guide/acpi/non-d0-probe.html
> https://docs.kernel.org/6.15/arch/x86/earlyprintk.html
>
> Signed-off-by: Rito Rhymes <rito@xxxxxxxxxxxxxx>
> Assisted-by: Codex:GPT-5.4
> ---
> v3: add latest public versioned URL examples to the patchlog
>
> Documentation/sphinx-static/custom.css | 5 +++++
> 1 file changed, 5 insertions(+)
With these two I at least see the problem - on Chrome, at least; Firefox
does a better job of it. Again I'm not convinced this is optimal, but
I've applied them as being better than what we have.
Thanks,
jon