Re: [PATCH 1/1] docs: allow inline literals in paragraphs to wrap to prevent overflow

From: Randy Dunlap

Date: Sat Mar 21 2026 - 17:04:20 EST




On 3/21/26 7:11 AM, Rito Rhymes wrote:
> 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.
>
> Signed-off-by: Rito Rhymes <rito@xxxxxxxxxxxxxx>

Tested-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>

Thanks.

> ---
> Documentation/sphinx-static/custom.css | 9 +++++++++
> 1 file changed, 9 insertions(+)
>

--
~Randy