diff options
author | Markus Armbruster <armbru@redhat.com> | 2017-03-15 13:57:09 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-03-16 07:13:02 +0100 |
commit | 71d918a1b191adaabd009910163f996289666ee7 (patch) | |
tree | edf19474da51adfe3894f4e9ca7efcaa77a34708 /scripts/qapi2texi.py | |
parent | ef801a9bb1e2cf276a8482c4ad1910f72de223f8 (diff) | |
download | qemu-71d918a1b191adaabd009910163f996289666ee7.zip qemu-71d918a1b191adaabd009910163f996289666ee7.tar.gz qemu-71d918a1b191adaabd009910163f996289666ee7.tar.bz2 |
qapi2texi: Plainer enum value and member name formatting
Use @code{%s} instead of @code{'%s'}. Impact, using @id as example:
* Texinfo
-@item @code{'id'}
+@item @code{id}
* HTML
-<dt><code>'id'</code></dt>
+<dt><code>id</code></dt>
* POD (for manual pages):
-=item C<'id'>
+=item C<id>
* Formatted manual pages:
-'id'
+"id"
* Plain text:
- ''id''
+ 'id'
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1489582656-31133-21-git-send-email-armbru@redhat.com>
Diffstat (limited to 'scripts/qapi2texi.py')
-rwxr-xr-x | scripts/qapi2texi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/qapi2texi.py b/scripts/qapi2texi.py index 91cd593..ecfaeda 100755 --- a/scripts/qapi2texi.py +++ b/scripts/qapi2texi.py @@ -130,12 +130,12 @@ def texi_body(doc): def texi_enum_value(value): """Format a table of members item for an enumeration value""" - return "@item @code{'%s'}\n" % value.name + return '@item @code{%s}\n' % value.name def texi_member(member): """Format a table of members item for an object type member""" - return "@item @code{'%s'}%s\n" % ( + return '@item @code{%s}%s\n' % ( member.name, ' (optional)' if member.optional else '') |