docs: kdoc: Move content handling into KernelEntry
authorJonathan Corbet <corbet@lwn.net>
Fri, 27 Jun 2025 18:39:54 +0000 (12:39 -0600)
committerJonathan Corbet <corbet@lwn.net>
Tue, 1 Jul 2025 19:11:57 +0000 (13:11 -0600)
commit1e2a79ca39ae33f1da347692c8a0573e120da511
tree78ef36ca653163a25adba8ef5cacd44687ca516c
parent4eaf6120c16a0fdb60177410507de86eefbe8c0f
docs: kdoc: Move content handling into KernelEntry

Rather than having other code mucking around with this bit of internal
state, encapsulate it internally.  Accumulate the description as a list of
strings, joining them at the end, which is a more efficient way of building
the text.

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250627184000.132291-3-corbet@lwn.net
scripts/lib/kdoc/kdoc_parser.py