From 71d918a1b191adaabd009910163f996289666ee7 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 15 Mar 2017 13:57:09 +0100 Subject: [PATCH] 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 -
'id'
+
id
* POD (for manual pages): -=item C<'id'> +=item C * Formatted manual pages: -'id' +"id" * Plain text: - ''id'' + 'id' Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake Message-Id: <1489582656-31133-21-git-send-email-armbru@redhat.com> --- scripts/qapi2texi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/qapi2texi.py b/scripts/qapi2texi.py index 91cd59391a..ecfaeda89e 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 '')