Don't always output a space after the unary minus, only when necessary.

This commit is contained in:
Sei Lisa 2015-03-28 23:35:08 +01:00
parent 4fbbda60a7
commit 01d8bba3f4

View file

@ -274,6 +274,8 @@ class outscript(object):
ret = '-'
if lnt in self.op_priority:
paren = self.op_priority[lnt] <= self.op_priority['-']
elif lnt == 'NEG' or lnt == '--V':
ret += ' ' # don't output -- as that's a different token
else:
if lnt in self.op_priority:
paren = True