docs: kdoc_output: remove extra attribute on man .TH headers

According with modern documents, groff .TH supports up to 5
arguments, but the logic passes 6. Drop the lastest one
("LINUX").

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <f5e480af877903b0596b6a56ef7a152eb8a10dbf.1772810752.git.mchehab+huawei@kernel.org>
This commit is contained in:
Mauro Carvalho Chehab
2026-03-06 16:45:42 +01:00
committed by Jonathan Corbet
parent c1873e7743
commit 43874045fa

View File

@@ -618,7 +618,7 @@ class ManFormat(OutputFormat):
modulename = self.modulename
self.data += f'.TH "{modulename}" {self.section} "{name}" '
self.data += f'"{self.date}" "{manual}" LINUX\n'
self.data += f'"{self.date}" "{manual}"\n'
def __init__(self, modulename, section="9", manual="API Manual"):
"""