[Mesa-dev] [PATCH 1/6] glapi: Fix whitespace droppings when printing the license header

Adam Jackson ajax at redhat.com
Wed May 4 19:11:59 UTC 2016


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 src/mapi/glapi/gen/gl_XML.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py
index 2e7123e..e11f6fc 100644
--- a/src/mapi/glapi/gen/gl_XML.py
+++ b/src/mapi/glapi/gen/gl_XML.py
@@ -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:
-- 
2.7.4



More information about the mesa-dev mailing list