The new version of Doxygen (1.7.6.1) produces different xml output around the <initia...
authorZhanna Tsitkov <tsitkova@mit.edu>
Thu, 3 May 2012 20:28:02 +0000 (20:28 +0000)
committerZhanna Tsitkov <tsitkova@mit.edu>
Thu, 3 May 2012 20:28:02 +0000 (20:28 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25846 dc483132-0cff-0310-8789-dd5450dbe970

doc/rst_tools/doxybuilder_types.py

index cbdb8aa96e29d171a49ec218e311b9ee80feef72..01ee961b6f89fd4c18c39365cce96f98ee55a764 100644 (file)
@@ -181,7 +181,9 @@ class DoxyTypes(object):
                 d_type = self._process_type_node(node.xpath("./initializer/ref")[0])        
             if len(d_type) > 0:
                 len_text = len(node.xpath('./initializer/text()'))
-                if len(node.xpath('./initializer/text()')[0]) > 0:
+                if len_text == 0 and d_type[1]:
+                    d_initializer = d_type[1]
+                if len_text > 0 and len(node.xpath('./initializer/text()')[0]) > 0:
                     d_initializer = node.xpath('./initializer/text()')[0] + d_type[1]
                 if len_text > 1:
                     if node.xpath('./initializer/text()')[1] is not None: