From e84a123e393995cf6a1722c0a3c9c006b30fbb47 Mon Sep 17 00:00:00 2001 From: Patman64 Date: Sun, 8 Mar 2015 19:31:31 -0400 Subject: [PATCH] Fix Global: appearing in docs where it isn't wanted. Also fix a broken font. --- docs/ElunaDoc/parser.py | 7 ++++++- docs/ElunaDoc/static/SourceSerifPro-Bold.woff | Bin 48718 -> 48720 bytes 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/ElunaDoc/parser.py b/docs/ElunaDoc/parser.py index c994cb3..7b92ac6 100644 --- a/docs/ElunaDoc/parser.py +++ b/docs/ElunaDoc/parser.py @@ -179,7 +179,12 @@ class ClassParser(object): return_values, parameters = match.group(1), match.group(2) parameters = ' '+parameters+' ' if parameters 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) def handle_end(self, match): diff --git a/docs/ElunaDoc/static/SourceSerifPro-Bold.woff b/docs/ElunaDoc/static/SourceSerifPro-Bold.woff index 435a6f975c97c26e7c7b83eb692648d9f581c76f..ac1b1b3a0bb7a673d52495743d8f86fd55188b44 100644 GIT binary patch delta 23 dcmX^2hv~u}rVS@e75~coX=@1=