Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: allow long table reference links to wrap and prevent overflow

Some documentation pages contain docutils tables with reference links
that use long unbroken strings. Those strings can expand the table
width beyond the content column and cause page-wide horizontal
overflow.

Allow reference links in docutils tables in the main document body to
wrap when needed so the table stays within the content column and does
not break page layout.

Examples:
https://docs.kernel.org/6.15/arch/openrisc/openrisc_port.html
https://docs.kernel.org/6.15/filesystems/ext2.html

Signed-off-by: Rito Rhymes <rito@ritovision.com>
Assisted-by: Codex:GPT-5.4
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260323152428.30483-2-rito@ritovision.com>

authored by

Rito Rhymes and committed by
Jonathan Corbet
127bdd9f 3aff388b

+5
+5
Documentation/sphinx-static/custom.css
··· 165 165 overflow-wrap: anywhere; 166 166 } 167 167 168 + /* Let rendered reference links in tables wrap when needed. */ 169 + div.body table.docutils a.reference { 170 + overflow-wrap: anywhere; 171 + } 172 + 168 173 /* Make xrefs more universally visible */ 169 174 a.reference, a.reference:hover { 170 175 border-bottom: none;