docs: kdoc: coalesce the new-section handling
authorJonathan Corbet <corbet@lwn.net>
Sat, 21 Jun 2025 20:35:08 +0000 (14:35 -0600)
committerJonathan Corbet <corbet@lwn.net>
Wed, 25 Jun 2025 17:30:26 +0000 (11:30 -0600)
commit99327067e1974e83cd8a60cf8445ce49086de46e
tree5eeaebbcfb6e272b06eba2bcbf1a164a479dc052
parent74cee0dfc2fc50e0d53629c289dc9b2954d31b1c
docs: kdoc: coalesce the new-section handling

Merge the duplicated code back into a single implementation.  Code movement
only, no logic changes.

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