mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
generate_builtins.py: Fix inconsistent use of tabs and spaces warning.
This commit is contained in:
parent
0d082c0e06
commit
096d36872f
1 changed files with 3 additions and 3 deletions
|
|
@ -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 "')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue