diff options
author | Kenneth Graunke <[email protected]> | 2010-11-15 14:00:03 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-11-15 14:02:52 -0800 |
commit | 096d36872ff531b0295109165cb90ea63be7a1b1 (patch) | |
tree | 1c75faea664bae6a562c545eb121ccbac248f9da /src | |
parent | 0d082c0e064e69972a302847256f3f16a3736977 (diff) |
generate_builtins.py: Fix inconsistent use of tabs and spaces warning.
Diffstat (limited to 'src')
-rwxr-xr-x | src/glsl/builtins/tools/generate_builtins.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glsl/builtins/tools/generate_builtins.py b/src/glsl/builtins/tools/generate_builtins.py index 9bde17157af..1f1056ea096 100755 --- a/src/glsl/builtins/tools/generate_builtins.py +++ b/src/glsl/builtins/tools/generate_builtins.py @@ -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 "') |