X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f613f81ac9c0dedd4e3a502b3aac24f36af36521..ae901b234c4a0aa7c1777b3bd181dd7f8517ad21:/docs/doxygen/doxymlparser.py diff --git a/docs/doxygen/doxymlparser.py b/docs/doxygen/doxymlparser.py index bbae794cb6..9b04d736f3 100755 --- a/docs/doxygen/doxymlparser.py +++ b/docs/doxygen/doxymlparser.py @@ -54,7 +54,7 @@ class ClassDefinition: str_repr = """ Class: %s Bases: %s -Inlcudes: %s +Includes: %s Brief Description: %s @@ -95,10 +95,13 @@ Detailed Description: def getTextValue(node, recursive=False): text = "" for child in node.childNodes: + if child.nodeType == child.ELEMENT_NODE and child.nodeName == "ref": + text += getTextValue(child) if child.nodeType == child.TEXT_NODE: - text += child.nodeValue.strip() + # Add a space to ensure we have a space between qualifiers and parameter names + text += child.nodeValue.strip() + " " - return text + return text.strip() def doxyMLToText(node): return text @@ -147,6 +150,7 @@ class DoxyMLParser: if child.nodeType == child.ELEMENT_NODE: param[child.nodeName] = getTextValue(child) new_method.params.append(param) + print "Adding %s" % (new_method.name + new_method.argsstring) new_class.methods.append(new_method) if __name__ == "__main__":