Improved tempalte formatting

This commit is contained in:
Hilton Bristow
2013-03-18 14:48:10 +10:00
committed by hbristow
parent 66c40bee6f
commit eda32520e2
7 changed files with 59 additions and 56 deletions

View File

@@ -133,9 +133,9 @@ class Function(object):
self.opt = opt if opt else []
def __str__(self):
return fill((self.rtp+' ' if self.rtp else '')+self.name+'('+\
return (self.rtp+' ' if self.rtp else '')+self.name+'('+\
join((arg.__str__() for arg in self.req+self.opt), ', ')+\
')'+(' const' if self.const else '')+';', 80, subsequent_indent=('\t\t' if self.clss else '\t'))
')'+(' const' if self.const else '')+';'
class Argument(object):
def __init__(self, name='', tp='', const=False, ref='', default=''):