qemu/scripts
Markus Armbruster b116fd8e30 qapi: Avoid unwanted blank lines in QAPIDoc
We silently fix missing #optional tags for QAPIDoc by appending a line
"#optional" to the section's .content.  However, this interferes with
.__repr__ stripping trailing blank lines from .content.

Use new ArgSection instance variable .optional instead, and leave
.content alone.

To permit testing .optional in texi_body(), clean up texi_enum()'s
hack to add empty documentation for undocumented enum values: add an
ArgSection instead of ''.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1489582656-31133-12-git-send-email-armbru@redhat.com>
2017-03-16 07:13:02 +01:00
..
2017-03-03 16:40:02 +01:00
2012-03-30 08:14:11 -05:00
2015-10-12 18:44:54 +02:00
2016-07-19 13:21:08 +02:00
2015-10-29 17:59:27 +00:00
2016-07-26 18:28:40 +02:00
2016-07-26 18:28:40 +02:00
2014-02-15 16:10:25 +04:00