diff options
author | Zhanna Tsitkov <tsitkova@mit.edu> | 2012-05-03 20:28:02 +0000 |
---|---|---|
committer | Zhanna Tsitkov <tsitkova@mit.edu> | 2012-05-03 20:28:02 +0000 |
commit | 4f16878eea03dd20d992c6054afa68aab97cd4ac (patch) | |
tree | 0eafd93198fe5a405ea425178e8fadf3ffeedd1f /doc | |
parent | caf1fdd98690019d9ac9f56125f4916cfbdfd2d4 (diff) | |
download | krb5-4f16878eea03dd20d992c6054afa68aab97cd4ac.tar.gz krb5-4f16878eea03dd20d992c6054afa68aab97cd4ac.tar.xz krb5-4f16878eea03dd20d992c6054afa68aab97cd4ac.zip |
The new version of Doxygen (1.7.6.1) produces different xml output around the <initializer> node. Adopt the script to the change.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25846 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'doc')
-rw-r--r-- | doc/rst_tools/doxybuilder_types.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/rst_tools/doxybuilder_types.py b/doc/rst_tools/doxybuilder_types.py index cbdb8aa96..01ee961b6 100644 --- a/doc/rst_tools/doxybuilder_types.py +++ b/doc/rst_tools/doxybuilder_types.py @@ -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: |