Fix Global: appearing in docs where it isn't wanted.

Also fix a broken font.
This commit is contained in:
Patman64
2015-03-08 19:31:31 -04:00
parent 7cb61f6259
commit e84a123e39
2 changed files with 6 additions and 1 deletions

View File

@@ -179,7 +179,12 @@ class ClassParser(object):
return_values, parameters = match.group(1), match.group(2) return_values, parameters = match.group(1), match.group(2)
parameters = ' '+parameters+' ' if parameters else '' parameters = ' '+parameters+' ' if parameters else ''
return_values = return_values + '= ' if return_values else '' return_values = return_values + '= ' if return_values else ''
prototype = '{0}{1}:{{0}}({2})'.format(return_values, self.class_name, parameters)
if self.class_name == 'Global':
prototype = '{0}{{0}}({1})'.format(return_values, parameters)
else:
prototype = '{0}{1}:{{0}}({2})'.format(return_values, self.class_name, parameters)
self.prototypes.append(prototype) self.prototypes.append(prototype)
def handle_end(self, match): def handle_end(self, match):