generate_builtins.py: Fix inconsistent use of tabs and spaces warning.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 15 Nov 2010 22:00:03 +0000 (14:00 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 15 Nov 2010 22:02:52 +0000 (14:02 -0800)
src/glsl/builtins/tools/generate_builtins.py

index 9bde17157afe0c2f1d7381199694bab35ddc7542..1f1056ea096dcfef89598135c310ddfd72f287cc 100755 (executable)
@@ -29,12 +29,12 @@ def stringify(s):
     # rather than actual string literals.
     if len(s) >= 65535:
         #t = "/* Warning: length " + repr(len(s)) + " too large */\n"
-       t = ""
+        t = ""
         for c in re.sub('\s\s+', ' ', s):
             if c == '\n':
-               t += '\n'
+                t += '\n'
             else:
-               t += "'" + c + "',"
+                t += "'" + c + "',"
         return '{' + t[:-1] + '}'
 
     t = s.replace('\\', '\\\\').replace('"', '\\"').replace('\n', '\\n"\n   "')