On 07/01/2015 02:21 PM, Markus Armbruster wrote: > Commit 05dfb26 added eatspace stripping to mcgen(). Move it to > cgen(), just in case somebody gets tempted to use cgen() directly > instead of via mcgen(). > > cgen() indents blank lines. No such lines get generated right now, > but fix it anyway. > > We use triple-quoted strings for program text, like this: > > ''' > Program text > any number of lines > ''' > > Keeps the program text relatively readable, but puts an extra newline > at either end. mcgen() "fixes" that by dropping the first and last > line outright. Drop only the newlines. > > This unmasks a bug in qapi-commands.py: four quotes instead of three. > Fix it up. > > Output doesn't change
Confirmed. > > Signed-off-by: Markus Armbruster <arm...@redhat.com> > --- > scripts/qapi-commands.py | 2 +- > scripts/qapi.py | 19 ++++++++++++------- > 2 files changed, 13 insertions(+), 8 deletions(-) > Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature