]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
docs: kdoc_output: add support to handle code blocks
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 6 Mar 2026 15:45:50 +0000 (16:45 +0100)
committerJonathan Corbet <corbet@lwn.net>
Mon, 9 Mar 2026 16:34:39 +0000 (10:34 -0600)
commit908ae13b1864c05bcde8cfc7127ec147d28f9414
treeffcfd3b49bb586cc941909cae603338bcd6db225
parent4ec130cff633361c2217d2ba116ae32772087087
docs: kdoc_output: add support to handle code blocks

It is common to have code blocks inside kernel-doc markups.
By default, troff will group all lines altogether, producing a
very weird output. If a code block is detected by disabling
filling inside code blocks, re-enabling it afterwards.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <fb6f16ad345f7ec1b1ebe4c5ec7ea3d9cd6de4fb.1772810752.git.mchehab+huawei@kernel.org>
tools/lib/python/kdoc/kdoc_output.py