From: Jonathan Corbet <corbet@lwn.net>
To: Rito Rhymes <rito@ritovision.com>, linux-doc@vger.kernel.org
Cc: Shuah Khan <skhan@linuxfoundation.org>,
linux-kernel@vger.kernel.org, rdunlap@infradead.org,
Rito Rhymes <rito@ritovision.com>
Subject: Re: [PATCH v3] docs: allow inline literals in paragraphs to wrap to prevent overflow
Date: Wed, 25 Mar 2026 13:23:33 -0600 [thread overview]
Message-ID: <87bjgbg1ca.fsf@trenco.lwn.net> (raw)
In-Reply-To: <20260323151401.27415-1-rito@ritovision.com>
Rito Rhymes <rito@ritovision.com> 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@ritovision.com>
> 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
prev parent reply other threads:[~2026-03-25 19:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-21 14:11 [PATCH 0/1] docs: examples of pages affected by inline literal overflow Rito Rhymes
2026-03-21 14:11 ` [PATCH 1/1] docs: allow inline literals in paragraphs to wrap to prevent overflow Rito Rhymes
2026-03-21 21:03 ` Randy Dunlap
2026-03-22 18:32 ` [PATCH v2 0/1] docs: examples of pages affected by inline literal overflow Rito Rhymes
2026-03-22 18:32 ` [PATCH v2 1/1] docs: allow inline literals in paragraphs to wrap to prevent overflow Rito Rhymes
2026-03-23 15:14 ` [PATCH v3] " Rito Rhymes
2026-03-25 19:23 ` Jonathan Corbet [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bjgbg1ca.fsf@trenco.lwn.net \
--to=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@infradead.org \
--cc=rito@ritovision.com \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox