mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix output of lists < 5 elements
This commit is contained in:
parent
3dd73f218f
commit
100de9c8e9
1 changed files with 4 additions and 1 deletions
|
@ -74,7 +74,10 @@ class outscript(object):
|
|||
return '[]'
|
||||
if len(value) < 5:
|
||||
self.listmode = True
|
||||
ret = '[ ' + self.Value2LSL(value[0]) + ' ]'
|
||||
ret = '[ ' + self.Value2LSL(value[0])
|
||||
for elem in value[1:]:
|
||||
ret += ', ' + self.Value2LSL(elem)
|
||||
ret += ' ]'
|
||||
self.listmode = False
|
||||
return ret
|
||||
ret = '\n'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue