glapi: Fix whitespace droppings when printing the license header
authorAdam Jackson <ajax@redhat.com>
Thu, 24 Mar 2016 17:57:58 +0000 (13:57 -0400)
committerAdam Jackson <ajax@redhat.com>
Tue, 17 May 2016 19:04:56 +0000 (15:04 -0400)
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
src/mapi/glapi/gen/gl_XML.py

index 2e7123ec406a8baba9e37007aea1370e1f3f468c..e11f6fc371e832fc0ea241120d37baae4830f323 100644 (file)
@@ -130,7 +130,7 @@ class gl_print_base(object):
                 % (self.name)
         print ''
         print '/*'
-        print ' * ' + self.license.replace('\n', '\n * ')
+        print (' * ' + self.license.replace('\n', '\n * ')).replace(' \n', '\n')
         print ' */'
         print ''
         if self.header_tag: