mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
qapi: Simplify representation of QAPIDoc section text
Use a string instead of a list of strings. This makes qapi2texi.py generate additional blank lines. They're harmless, and the next commit will get rid of them again. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20171002141341.24616-9-armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
fc3f0df187
commit
09331fced1
4 changed files with 17 additions and 20 deletions
|
@ -230,6 +230,7 @@ If you're bored enough to read this, go see a video of boxed cats
|
|||
|
||||
@b{Arguments:} the members of @code{Object}
|
||||
|
||||
|
||||
@b{Example:}
|
||||
@example
|
||||
-> in
|
||||
|
|
|
@ -61,8 +61,8 @@ for doc in schema.docs:
|
|||
print 'doc symbol=%s' % doc.symbol
|
||||
else:
|
||||
print 'doc freeform'
|
||||
print ' body=\n%s' % doc.body
|
||||
print ' body=\n%s' % doc.body.text
|
||||
for arg, section in doc.args.iteritems():
|
||||
print ' arg=%s\n%s' % (arg, section)
|
||||
print ' arg=%s\n%s' % (arg, section.text)
|
||||
for section in doc.sections:
|
||||
print ' section=%s\n%s' % (section.name, section)
|
||||
print ' section=%s\n%s' % (section.name, section.text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue