mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Minor formatting fix for calculator.
Don't output a newline before a list constant if in calculator mode. While we're there, make a comparison more compact.
This commit is contained in:
parent
e5ffe56fec
commit
a961fee1c3
1 changed files with 2 additions and 5 deletions
|
@ -151,14 +151,11 @@ class outscript(object):
|
||||||
ret += ']'
|
ret += ']'
|
||||||
self.listmode = False
|
self.listmode = False
|
||||||
return ret
|
return ret
|
||||||
ret = '\n'
|
ret = '' if lslcommon.IsCalc else '\n'
|
||||||
first = True
|
first = True
|
||||||
self.indentlevel += 1
|
self.indentlevel += 1
|
||||||
for entry in value:
|
for entry in value:
|
||||||
if not first:
|
ret += self.dent() + ('[ ' if first else ', ')
|
||||||
ret += self.dent() + ', '
|
|
||||||
else:
|
|
||||||
ret += self.dent() + '[ '
|
|
||||||
self.listmode = True
|
self.listmode = True
|
||||||
ret += self.Value2LSL(entry) + '\n'
|
ret += self.Value2LSL(entry) + '\n'
|
||||||
self.listmode = False
|
self.listmode = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue