docs: kdoc: Move content handling into KernelEntry
authorJonathan Corbet <corbet@lwn.net>
Wed, 25 Jun 2025 20:51:11 +0000 (14:51 -0600)
committerJonathan Corbet <corbet@lwn.net>
Wed, 25 Jun 2025 22:49:58 +0000 (16:49 -0600)
commitd6699d5f601670176bd03f95d1680914bd65b2a9
tree78ef36ca653163a25adba8ef5cacd44687ca516c
parentd982828d08b63c2c56f83c09b33cb71929fd4c22
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.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/lib/kdoc/kdoc_parser.py