qapi: Recognize section tags and 'Features:' only after blank line
commit66227e90478b34a2bc4bbd4f11f5ea637184c20b
authorMarkus Armbruster <armbru@redhat.com>
Fri, 16 Feb 2024 14:58:35 +0000 (16 15:58 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 26 Feb 2024 09:43:56 +0000 (26 10:43 +0100)
tree43373d1384dcb869b2f7bf8b1cc7215787bc7b1b
parentd23055b8db88a54b372ebbbffe3681169d2a767a
qapi: Recognize section tags and 'Features:' only after blank line

Putting a blank line before section tags and 'Features:' is good,
existing practice.  Enforce it.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240216145841.2099240-12-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
docs/devel/qapi-code-gen.rst
scripts/qapi/parser.py
tests/qapi-schema/doc-duplicated-return.err
tests/qapi-schema/doc-duplicated-return.json
tests/qapi-schema/doc-duplicated-since.err
tests/qapi-schema/doc-duplicated-since.json
tests/qapi-schema/doc-good.json
tests/qapi-schema/doc-invalid-return.err
tests/qapi-schema/doc-invalid-return.json