Hi ----- Original Message ----- > Marc-André Lureau <marcandre.lur...@redhat.com> writes: > > > Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> > > --- > > scripts/qapi2texi.py | 7 +++---- > > 1 file changed, 3 insertions(+), 4 deletions(-) > > > > diff --git a/scripts/qapi2texi.py b/scripts/qapi2texi.py > > index a317526e51..8b542f9fff 100755 > > --- a/scripts/qapi2texi.py > > +++ b/scripts/qapi2texi.py > > @@ -136,10 +136,9 @@ def texi_enum_value(value): > > def texi_member(member, suffix=''): > > """Format a table of members item for an object type member""" > > typ = member.type.doc_type() > > - return '@item @code{%s%s%s}%s%s\n' % ( > > - member.name, > > - ': ' if typ else '', > > - typ if typ else '', > > + membertype = ': %s' % typ if typ else '' > > I'd use string concatenation (': ' + typ) instead of interpolation. > Matter of taste. Could make the change when I apply.
Good idea > > > + return '@item @code{%s%s}%s%s\n' % ( > > + member.name, membertype, > > ' (optional)' if member.optional else '', > > suffix) > > Reviewed-by: Markus Armbruster <arm...@redhat.com> > thanks