]> git.proxmox.com Git - mirror_qemu.git/commit
qapi: add 'If:' condition to enum values documentation
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 13 Dec 2018 12:37:20 +0000 (16:37 +0400)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 14 Dec 2018 05:52:48 +0000 (06:52 +0100)
commita35c9bf82aff4e80a90f0adfc7383d03749db0b6
tree8a27cdb33977b141cf15c1ca6ba6dd3c2a9b4876
parent8ee06f61e13701a54a9f76ceadafc856d279cdb6
qapi: add 'If:' condition to enum values documentation

Use a common function to generate the "If:..." line.

While at it, get rid of the existing \n\n (no idea why it was
there). Use a line-break in member description, this seems to look
slightly better in the plaintext version.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20181213123724.4866-19-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/doc.py
tests/qapi-schema/doc-good.json
tests/qapi-schema/doc-good.out
tests/qapi-schema/doc-good.texi