Re: [PATCH v3] docs: allow inline literals in paragraphs to wrap to prevent overflow
From: Jonathan Corbet
Date: Wed Mar 25 2026 - 15:25:05 EST
Rito Rhymes <rito@xxxxxxxxxxxxxx> writes:
> Some documentation pages contain long inline literals in paragraph
> text that can force page-wide horizontal scroll overflow and break
> layout on smaller screens.
>
> Override the default `span.pre` white-space behavior for inline
> literals and use `overflow-wrap: anywhere` so they can wrap when
> needed. For code used as part of a paragraph, wrapping is appropriate
> because it is stylistically part of the surrounding text. Code blocks,
> by contrast, are meant to preserve formatting fidelity and are better
> served by contained horizontal scrolling.
>
> Examples:
> https://docs.kernel.org/6.15/userspace-api/futex2.html
> https://docs.kernel.org/6.15/security/IMA-templates.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 | 9 +++++++++
> 1 file changed, 9 insertions(+)
I have applied this one as well.
Thanks,
jon