]> git.ipfire.org Git - thirdparty/linux.git/commit
docs: kdoc_output: Change the logic to handle man highlight
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 6 Mar 2026 15:45:48 +0000 (16:45 +0100)
committerJonathan Corbet <corbet@lwn.net>
Mon, 9 Mar 2026 16:34:38 +0000 (10:34 -0600)
commitcde7c96f88a0fe9ed53e8bb57147b19a725cf097
treeded4f0bcbb5362a0260e35e2bb9a62b894976cde
parente4dadcf510da846f32aaaad5d5988890cbf6033d
docs: kdoc_output: Change the logic to handle man highlight

The code inside ManFormat code to output man pages is too simple:
it produces very bad results when the content has tables or code
blocks.

Change the way lines are parsed there to allow adding extra
logic to handle some special cases.

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